text-decoration-style
text-decoration-style 属性用于设置元素中文本的修饰线样式,线的样式会应用到所有被 text-decoration-line 设定的线,不能为其中的每条线设置不同的样式。
uni-app x 兼容性
| Web | Android | iOS | HarmonyOS | HarmonyOS(Vapor) |
| 4.0 | x | x | x | x |
语法
示例源码如下,请查看 pre > code 标签中的内容
text-decoration-style: solid | double | dotted | dashed | wavy;
值限制
text-decoration-style 的属性值
| 名称 | 兼容性 | 描述 |
| solid | |
Web
|
Android
|
iOS
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | x | x | x | x |
| 实线。 |
| dashed | |
Web
|
Android
|
iOS
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | x | x | x | x |
| 虚线。 |
| dotted | |
Web
|
Android
|
iOS
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | x | x | x | x |
| 点划线。 |
| wavy | |
Web
|
Android
|
iOS
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | x | x | x | x |
| 波浪线。 |
App平台差异
text-decoration-style 样式不支持继承
参见