首页 > 解决方案 > 链接不带下划线的 html(文本装饰:无无效)

问题描述

写一个 html 签名,“text-decoration: none;” (适用于一个链接)仅在我用浏览器打开 html 文件的情况下才有效。如果我尝试发送带有签名的电子邮件,则下划线返回。

这是我的代码:

<a href="Link to the site"style="text-decoration: none; color:#C45911">https://Link </a>

标签: htmlhyperlinksignatureunderlinetext-decorations

解决方案


我想text-decoration: none物业工作得很好。有两个可能的问题: 1:其他一些样式表正在更改属性a:link 2:如果您使用的是 react 之类的框架,则首先编译您的 css,然后再应用其他 css 文件。您可以使用并单击链接顶部来检查哪个 css 文件正在更改a:linkChrome 上的标签属性ctrl+alt+c


推荐阅读