0
点赞
收藏
分享

微信扫一扫

提高wordpress网站收录速度,设置wp后台的“更新服务”功能

胡桑_b06e 2023-12-06 阅读 44
css前端

css文本添加下划线

text-decoration: underline;

text-decoration相关属性参数

参数描述
none默认。定义标准的文本。
underline定义文本下的一条线。
overline定义文本上的一条线。
line-through定义穿过文本下的一条线。
blink定义闪烁的文本。
inherit规定应该从父元素继承 text-decoration 属性的值。

在这里插入图片描述

// text-decoration-line参数
text-decoration-line:underline; //下划线
text-decoration-line:overline; //上划线
text-decoration-line:line-through; //中划线/删除线

//text-decoration-color 不做过多介绍(划线的颜色)
text-decoration-color:red; 

//text-decoration-style 划线的类型
text-decoration-style:solid; //实线
text-decoration-style:wavy; //波浪线
text-decoration-style:dashed; //虚线
text-decoration-style:dotted; //点线
text-decoration-style:double; //双线
举报

相关推荐

0 条评论