无论如何(在CSS中)避免在页面中引入的文本和链接的下划线..?


当前回答

使用css属性,

text-decoration:none;

从链接中删除下划线。

其他回答

使用CSS删除文本装饰。

a {
  text-decoration: none;
}

我在网印中一直被这个问题困扰并解决了。验证的结果。

a {
  text-decoration: none !important;
}

它的工作原理!

css是

text-decoration: none;

and

text-decoration: underline;

有时它会被一些渲染UI CSS覆盖。更好的用法:

a.className {
  text-decoration: none !important;
}

这将删除您的颜色以及锚标签存在的下划线

a {
  text-decoration: none;
}

a:hover {
  color: white;
  text-decoration: none;
  cursor: pointer;
}