gpt4 book ai didi

html - 单击 Outlook html 电子邮件中的 anchor 后颜色发生变化

转载 作者:太空宇宙 更新时间:2023-11-04 12:26:38 25 4
gpt4 key购买 nike

我想避免单击 anchor 时 html 电子邮件模板中的颜色变化。

在 Outlook 中,单击白色 anchor 后会变成紫色。

代码:

<table style="background-color: #404040; width: 100%;">
<tbody>
<tr>
<td>
<table cellpadding="3" cellspacing="0" border="0" style="width: 100%; margin-bottom: 2px">
<tbody>
<tr>
<td width="10px"></td>
<td><a href="http://www.izigo.pt" target="_blank" style="font-family: verdana,geneva,sans-serif; color: #D3D3D3; font-size: 10px; text-decoration: none;">Oficinas</a></td>
<td width="12px"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

最佳答案

将此添加到您的 HTML 中:

<style>
a:visited {
color: #FFFFFF; /* Or whatever white you're using */
}
</style>

它只是将 CSS 注入(inject)您的页面,以便在 a 标签被访问后对其进行处理。

关于html - 单击 Outlook html 电子邮件中的 anchor 后颜色发生变化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27973618/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com