a[href^="http://"]{ padding-right: 20px; background: url(external.gif) no-repeat center right; } /* emails */ a[href^="mailto:"]{ padding-right: 20px; background: url(email.png) no-repeat center right; } /* pdfs */ a[href$=".pdf"]{ padding-right: 20px; background: url(pdf.png) no-repeat center right; }
css基于文件格式使用不同的样式
猜你喜欢
转载自www.cnblogs.com/chenzeyongjsj/p/9177603.html
今日推荐
周排行