Gmail签名会从链接中删除text-decoration:none

时间:2017-08-08 06:56:38

标签: html css gmail

有没有办法设置链接text-decoration: none,因为下划线?我正在寻找stackoverflow,但没有工作。首先没有下划线,但是当我发送电子邮件时,可以看到下划线。

<a href="www.google.com">Link</a>

<a href="www.google.com" style="text-decoration: none;">Link</a>

<a href="www.google.com" style="text-decoration: none !important;">Link</a>

<a href="www.google.com" style="text-decoration: none !important; text-decoration: none">Link</a>

<a href="www.google.com" style="text-decoration-color: transparent">Link</a>

<a href="www.google.com" style="text-decoration: none;">
    <span style="text-decoration: none">Link</span>
</a>

1 个答案:

答案 0 :(得分:-1)

尝试添加!important:

HTML

<a src = "www.google.com" id = "link"/>

CSS

#link {
    text-decoration : none !important ;
}