Back to Uni App

Text Decoration Style

docs/css/text-decoration-style.md

2.3.31.2 KB
Original Source

text-decoration-style

text-decoration-style 属性用于设置元素中文本的修饰线样式,线的样式会应用到所有被 text-decoration-line 设定的线,不能为其中的每条线设置不同的样式。

uni-app x 兼容性

WebAndroidiOSHarmonyOSHarmonyOS(Vapor)
4.0xxxx

语法

text-decoration-style: solid | double | dotted | dashed | wavy;

值限制

  • enum

text-decoration-style 的属性值

名称兼容性描述
solidWeb: 4.0; Android: x; iOS: x; HarmonyOS: x; HarmonyOS(Vapor): x实线。
dashedWeb: 4.0; Android: x; iOS: x; HarmonyOS: x; HarmonyOS(Vapor): x虚线。
dottedWeb: 4.0; Android: x; iOS: x; HarmonyOS: x; HarmonyOS(Vapor): x点划线。
wavyWeb: 4.0; Android: x; iOS: x; HarmonyOS: x; HarmonyOS(Vapor): x波浪线。

适用组件 @unix-tags

App平台差异

text-decoration-style 样式不支持继承

参见