本站资源收集于互联网,不提供软件存储服务,每天免费更新优质的软件以及学习资源!

text

电脑教程 app 1℃

text
text-decoration属性用于添加文本修饰,如下划线、删除线或上划线,其可用的值包括:none:移除所有修饰underline:添加下划线overline:添加上划线line-through:添加删除线blink:添加闪烁效果(已过时,不建议使用)

text-decoration属性值

text-decoration属性用于给文本添加修饰,如下划线、删除线或上划线等。该属性的值可以是:

none
移除所有文本修饰。

underline
给文本添加一条下划线。

overline
给文本添加一条上划线。

line-through
给文本添加一条删除线,穿过文本中间。

blink
给文本添加闪烁效果。注意,这是一个已经过时的值,不建议使用。

语法

text-decoration: none | underline | overline | line-through | blink;

示例

<p style="text-decoration: underline;">带下划线的文本</p><p style="text-decoration: overline;">带上划线的文本</p><p style="text-decoration: line-through;">带删除线的文本</p>

以上就是text-decoration属性值有哪些的详细内容,更多请关注范的资源库其它相关文章!

引用来源:https://app.fanyaozu.com/382167.html

转载请注明:范的资源库 » text

喜欢 (0)