扫描二维码下载沐宇APP

沐宇

微信扫码使用沐宇小程序

沐宇

html中text-decoration属性有什么用

扬州沐宇科技
2023-12-13 15:31:54
html

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

常见的取值有:

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

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

扫码添加客服微信