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

标签 html css outlook

我想避免单击 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/

相关文章:

css - Bootstrap CSS 导航栏高度在 IE 和 FF 中很大,在 Chrome 中正确

jquery - 如何让我的导航栏图像响应我的导航栏

vba - Outlook 2010 创建文件夹和子文件夹

html - 如何使用带有阴影和颜色的 css 自定义 div

html - 元素与 CSS 对齐

php - 保护隐藏表单数据 $_POST

vba - 在 YYYY\MM\DD 文件夹结构下保存邮件附件

javascript - 在html代码中从angularjs重复特定数量的div标签

html - 固定页脚覆盖页面内容

outlook - 在 Outlook 2010 中录制宏