温馨提示×

html中text-decoration属性有什么用

小亿
198
2023-12-13 15:31:54
栏目: 编程语言

text-decoration属性用于设置或移除文本的装饰效果,如下划线、上划线、删除线等。

常见的取值有:

  • none:默认值,没有装饰效果
  • underline:添加下划线
  • overline:添加上划线
  • line-through:添加删除线
  • blink:使文本闪烁(不被所有浏览器支持)

text-decoration还可以与其他属性组合使用,如text-decoration-color、text-decoration-style等,以进一步定义装饰效果的颜色和样式。

0