如何在我的HTML电子邮件中删除链接下划线? [英] How do I remove link underlining in my HTML email?

查看:444
本文介绍了如何在我的HTML电子邮件中删除链接下划线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<td width="110" align="center" valign="top" style="color:#000000;">
    <a href="https://example.com" target="_blank"
       style="color:#000000; text-decoration:none;">BOOK NOW
    </a>
</td>

我使用此代码在我的HTML电子邮件中创建一个链接。在浏览器和Outlook它的工作很好,但在GMail,Hotmail和ymail它显示链接加下划线。

I used this code to make a link in my HTML email. In browsers and Outlook it's working nicely, but in GMail, Hotmail, and ymail it shows links underlined.

任何人都可以帮助我摆脱这一切?

Can anyone help me to get rid of this?

推荐答案

<a href="#" style="text-decoration:none !important; text-decoration:none;">BOOK NOW</a>

Outlook会删除与!重要的样式标签留下常规样式,因此没有下划线。 !important 标签将会超过基于网络的电子邮件客户端的默认样式,因此不会有下划线。

Outlook will strip out the style with !important tag leaving the regular style, thus no underline. The !important tag will over rule the web based email clients' default style, thus leaving no underline.

这篇关于如何在我的HTML电子邮件中删除链接下划线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆