无论如何(在CSS中)避免在页面中引入的文本和链接的下划线..?
当前回答
下划线可以通过称为文本装饰的CSS属性删除。
<style>
a {
text-decoration:none;
}
</style>
如果要删除除a之外元素中文本的下划线,则应使用以下语法。
<style>
element-name{
text-decoration:none;
}
</style>
还有许多其他文本装饰值可以帮助你设计链接。
其他回答
使用CSS删除文本装饰。
a {
text-decoration: none;
}
我在网印中一直被这个问题困扰并解决了。验证的结果。
a {
text-decoration: none !important;
}
它的工作原理!
下划线可以通过称为文本装饰的CSS属性删除。
<style>
a {
text-decoration:none;
}
</style>
如果要删除除a之外元素中文本的下划线,则应使用以下语法。
<style>
element-name{
text-decoration:none;
}
</style>
还有许多其他文本装饰值可以帮助你设计链接。
css是
text-decoration: none;
and
text-decoration: underline;
如果你只是想从锚链接中删除下划线,最好的选择-
#content a {
text-decoration-line:none;
}
这将删除下划线。
此外,您也可以使用类似的语法来操作其他样式,使用-
text-decoration: none;
text-decoration-color: blue;
text-decoration-skip: spaces;
text-decoration-style: dotted;
希望这能有所帮助!
附注:这是我第一次回答!
推荐文章
- 使伸缩项目正确浮动
- 如何取消最大高度?
- 形式内联内的形式水平在twitter bootstrap?
- 自定义元素在HTML5中有效吗?
- 如何选择在最后一个子元素之前的元素?
- 如何触发自动填充在谷歌Chrome?
- CSS变换,锯齿边缘在铬
- 创建圈div比使用图像更容易的方法?
- 强迫孩子服从父母的弯曲边界在CSS
- 为什么Chrome浏览器不正确地确定页面是在不同的语言,并提供翻译?
- 在CSS中@apply是什么?
- 在网页上用鼠标模拟震颤(例如帕金森病)?
- Bootstrap抛出Uncaught错误:Bootstrap的JavaScript需要jQuery
- 如何改变文本区域的边框颜色:焦点
- 我如何设置背景颜色为文本的宽度,而不是整个元素的宽度,使用CSS?