我的电子邮件模板中有两个mailto链接,并希望上面有两种不同的颜色。(蓝色和白色)

问题描述 投票:0回答:2
一个[href ^ =“ mailto:”]{颜色:蓝色;}

我正在使用上面的代码,并且已应用于两个mailto链接。有什么方法可以使mailto链接具有两种不同的颜色?尝试了SPAN类,但无法在Outlook中使用。

html css email html-email email-templates
2个回答
0
投票

尝试这样

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;
}

0
投票

尝试一下

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;
}

输出

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.