Created
October 24, 2015 17:33
-
-
Save rtivital/65ab59d601cdb3c4f7b1 to your computer and use it in GitHub Desktop.
Отображение внешних ссылок, не содежащих текст
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Для отображения внешних ссылок, не содежащих текст, | |
// например, <a href="http://vk.com"></a> | |
// можно использовать функцию attr() для заполнения | |
// ссылки текстом | |
a[href^="http"]:empty::before { | |
content: attr(href); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment