【发布时间】:2017-07-03 04:19:34
【问题描述】:
我的 html 时事通讯中有两个链接,无论我做什么,它们都会变成默认的蓝色。任何人都知道任何修复。
<span>、<font> 和 <strong> 标签是我读过的所有修复程序,但似乎都没有工作。
a {font-family:'Roboto', sans-serif, Helvetica, Arial !important; font-size:16px; color: #EF8152 !important;; font-weight:300; text-decoration: none;}
<a href="#" style="margin:10px 0px 40px 0px; font-family:'Roboto', sans-serif, Helvetica, Arial !important; font-size:1em; color: #EF8152 !important; color: #EF8152; font-weight:300; line-height:1.0em; font-size:1em; text-align:center;">
<span style="color:#EF8152 !important; color: #EF8152;">
<font color="#EF8152">
<strong style="text-decoration: none; color: #EF8152 !important; color: #EF8152;">
View in web browser.
</strong>
</font>
</span>
</a>
【问题讨论】:
-
你有一个
a:visited在某个地方接管吗?您也可以尝试将a更改为a:link -
@Fred -ii- 不。这是最奇怪的事情,我一辈子都想不通。
-
但是,您的 html 中有一些内联样式,这可能会产生 advserse 效果和 span 中的其他样式。那或检查您的设置;也许您的手机(outlook 应用)中的某些东西正在覆盖它。
-
您发布的代码运行良好,我认为您的代码中有另一个类正在覆盖您的样式
-
@Fred -ii- 你指的是 style="color:#EF8152 !important; color: #EF8152;" 吗?这是我读到的另一个修复方法,但也没有用。
标签: android html css outlook html-email