删除Gmail上的链接的蓝色下划线
我尝试了所有建议的方法,并且无法摆脱Gmail桌面上我的Outlook签名链接的蓝色下划线(在Gmail Android应用上没问题)
我尝试将标题上的文本修饰应用于所有链接,href样式和span样式。 我也尝试覆盖Gmail .ii
我分别尝试了其中的每一个,但都没有工作,无论我做什么,我都会得到蓝色的下划线。
a:link {
text-decoration: none!important;
}
.ii a[href] {
text-decoration: none!important;
}
<a href="http://www.google.com" style="color:red; text-decoration:none">
<span style="color:red; text-decoration:none";>text</span>
</a>
您的代码可以简化如下。 有很多不必要的/未使用的风格。 但是,即使使用您的代码,下划线也不在那里。 还有一件事,尽量避免!重要的,而是依赖于css的特殊性
.info-link{
text-decoration:none;
color:red;
}
<body>
<a href="http://www.google.com" class="info-link"><span>text</span></a>
</body>
试试这个使用CSS text-decoration属性
<style type="text/css">
<!--
a { text-decoration : none; color : #000; }
-->
</style>
详细了解CSS文本修饰属性
使用引导库:
<link rel="stylesheet" type="text/css" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
并在您的锚标记中添加class =“btn”,如下所示:
<a class="btn" style="text-decoration: none;" href="http://www.google.com"><span>text</span></a>
链接地址: http://www.djcxy.com/p/74623.html