小程序/CSS的text-decoration属性

text-decoration属性允许对文本设置某种效果,如加下划线。如果子元素没有自己的装饰,父元素上设置的装饰会“延伸”到子元素中。

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

示例:

文字排版--下划线 

text-decoration:underline;

文字排版--删除线

text-decoration:line-through;

猜你喜欢

转载自blog.csdn.net/watson2017/article/details/118572039