【问题标题】:Gmail signature removes text-decoration: none from linksGmail 签名从链接中删除 text-decoration: none
【发布时间】:2017-08-08 06:56:37
【问题描述】:

有没有什么方法可以设置链接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>

【问题讨论】:

    标签: html css gmail


    【解决方案1】:

    尝试添加 !important :

    HTML

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

    CSS

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

    【讨论】:

    • 不幸的是,Gmail 还删除了所有 CSS id 和类。但是一个 { text-decoration: none !important; } 也不起作用。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-13
    • 1970-01-01
    • 2015-09-20
    • 1970-01-01
    • 2019-12-07
    • 2021-12-30
    相关资源
    最近更新 更多