css怎么去掉下划线样式

发布时间:2022-05-17 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了css怎么去掉下划线样式脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

css去掉下划线样式的方法是,设置属性【text-decoration: none;】。如果我们要为文本添加样式,如红色波浪线,可以设置属性【text-decoration: underline red;】。

css怎么去掉下划线样式

本文操作环境:windows10系统、css 3、ThinkPad t480脑。

如果我们要取消文本中的下划线样式,可以设置属性text-decoration: none,下面我们来介绍下text-decoration属性。

text-decoration 属性规定添加到文本的修饰,下划线、上划线、删除线等。

@H_360_15@text-decoration: none; /*没有文本装饰*/ text-decoration: underline red; /*红色下划线*/ text-decoration: underline wavy red; /*红色波浪形下划线*/

举些例子:

h1.under {
    text-decoration: underline;
}
h1.over {
    text-decoration: overline;
}
p.line {
    text-decoration: line-through;
}
p.blink {
    text-decoration: blink;
}
a.none {
    text-decoration: none;
}
p.underover {
    text-decoration: underline overline;
}

学习视频分享:css视频教程

以上就是css怎么去掉下划线样式的详细内容,更多请关注脚本宝典其它相关文章

脚本宝典总结

以上是脚本宝典为你收集整理的css怎么去掉下划线样式全部内容,希望文章能够帮你解决css怎么去掉下划线样式所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: