2017-08-08 31 views
0

有什么办法可以设置链接text-decoration: none是因为下划线吗?我正在寻找stackoverflow,但nothings作品。首先没有下划线,但是当我发送电子邮件时,下划线是可见的。Gmail签名删除文字修饰:无链接

<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

尝试增加重要:

HTML

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

CSS

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

不幸的是,Gmail也可以删除所有CSS ID和类。但{文字装饰:无!重要; }也不起作用。 – Vesmy