邮件模板:text-decoration: none;不工作

Email Template: text-decoration: none; NOT working

我在电子邮件模板中添加了 link,我不想在 link 下划线。在 Outlook 中它工作正常但在 Yahoo 和 Gmail 中不工作。示例代码如下

<p> My paragraph
  <b>
    <a style="color: #9B0D25; cursor:pointer; text-decoration: none;" href="abc.com">abc.com</a>
  </b>
</p>

我试过 text-decoration: none !important; 但结果相同。任何人都可以帮助我吗?

不要在 HTML 电子邮件中使用段落。将锚标记的样式属性移动到 href 属性之后。如果这不能解决您的问题,那么您遇到的问题比从您提供的代码中看到的问题更大。

添加 important 标签实际上效果不佳,因为 Outlook 会忽略任何后跟 !important

的样式

如果您想使用模板,check this one out.

嗯...我正在将电子邮件从 outlook 转发到 yahoo。从 Outlook 发送邮件时,它会丢弃 属性 text-decoration: none;。所以当我直接向雅虎发送电子邮件时,它有效!!