有没有办法设置链接 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>
最佳答案
尝试添加 !important :
HTML
<a src = "www.google.com" id = "link"/>
CSS
#link {
text-decoration : none !important ;
}
关于html - Gmail签名去掉文字修饰: none from links,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45561302/