CSS/HTML

推荐列表 站点导航

当前位置:首页 > 脚本编程 > CSS/HTML >

css如何设置字体下划线

来源:网络整理  作者:  发布时间:2020-12-18 00:43
css设置字体下划线的方法:可以利用text-decoration属性来进行设置,如【text-decoration: underline;】。text-decoration属性用于...

css如何设置字体下划线

line-through 定义穿过文本下的一条线。

css设置字体下划线的方法:可以利用text-decoration属性来进行设置,如【text-decoration: underline;】。text-decoration属性用于规定添加到文本的修饰、下划线、上划线、删除线等。

属性介绍:

overline 定义文本上的一条线。

inherit 规定应该从父元素继承 text-decoration 属性的值。

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如何设置字体下划线的详细内容,更多请关注聚合云库其它相关文章!

underline 定义文本下的一条线。

/*关键值*/ text-decoration: none; /*没有文本装饰*/ text-decoration: underline red; /*红色下划线*/ text-decoration: underline wavy red; /*红色波浪形下划线*/ /*全局值*/ text-decoration: inherit; text-decoration: initial; text-decoration: unset;

属性值:

(视频教程分享:css视频教程

blink 定义闪烁的文本。

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

语法:

none 默认。定义标准的文本。

举例:

相关热词: CSS

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/jiaob/cssm/4985.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

css如何设置字体下划线

2020-12-18 编辑:

css如何设置字体下划线

line-through 定义穿过文本下的一条线。

css设置字体下划线的方法:可以利用text-decoration属性来进行设置,如【text-decoration: underline;】。text-decoration属性用于规定添加到文本的修饰、下划线、上划线、删除线等。

属性介绍:

overline 定义文本上的一条线。

inherit 规定应该从父元素继承 text-decoration 属性的值。

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如何设置字体下划线的详细内容,更多请关注聚合云库其它相关文章!

underline 定义文本下的一条线。

/*关键值*/ text-decoration: none; /*没有文本装饰*/ text-decoration: underline red; /*红色下划线*/ text-decoration: underline wavy red; /*红色波浪形下划线*/ /*全局值*/ text-decoration: inherit; text-decoration: initial; text-decoration: unset;

属性值:

(视频教程分享:css视频教程

blink 定义闪烁的文本。

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

语法:

none 默认。定义标准的文本。

举例:

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/jiaob/cssm/4985.shtml

相关文章

风云图片

推荐阅读

返回CSS/HTML频道首页