Created
December 7, 2019 13:15
-
-
Save MinecraftFuns/b62ff998db88947e9eb43cd2aa3416c8 to your computer and use it in GitHub Desktop.
不同a标签链接使用不同样式
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
// link | |
a[href^="http://"]{ | |
background: url(link.gif) no-repeat center right; | |
} | |
// emails | |
a[href^="mailto:"]{ | |
background: url(email.png) no-repeat center right; | |
} | |
// pdfs | |
a[href$=".pdf"]{ | |
background: url(pdf.png) no-repeat center right; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment