css怎么去掉下划线样式


本文摘自PHP中文网,作者V,侵删。

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

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

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

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

1

2

3

4

5

6

text-decoration: none;                    

/*没有文本装饰*/

text-decoration: underline red;           

/*红色下划线*/

text-decoration: underline wavy red;      

/*红色波浪形下划线*/

举些例子:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

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如何取消链接下划线

css 派生选择器通过什么来定义

css a代表什么

css %单位的特点

css如何修改字体为华文行楷

css中的&是什么意思

常见的css框架有哪些

css如何设置浮动

css实现选框选中效果

更多相关阅读请进入《css》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...