一个[href ^ =“ mailto:”]{颜色:蓝色;}
我正在使用上面的代码,并且已应用于两个mailto链接。有什么方法可以使mailto链接具有两种不同的颜色?尝试了SPAN类,但无法在Outlook中使用。
尝试这样
HTML
<body>
<a href="mailto:232322232" class="blue">232322232</a>
<a href="mailto:232322232" class="white">232322232</a>
</body>
css
body{
background-color:#000;
}
a.blue{
color:blue;
}
a.white{
color:white;
}
尝试一下
HTML
<a href="mailto:[email protected]" target="_top" class="mail1">Send Mail 1</a>
<a href="mailto:[email protected]" target="_top" class="mail2">Send Mail 2</a>
CSS
.mail1{
color:red;
}
.mail1{
color:green;
}
输出