简体中文
CSS 属性 text-decoration-style 用于设置由 text-decoration-line 设定的线的样式。线的样式会应用到所有被 text-decoration-line 设定的线,不能为其中的每条线设置不同的样式。当要设置多个线修饰属性时,用 text-decoration 简写属性会比分别写多个属性更方便。
Android | iOS | web |
---|---|---|
x | x | 4.0 |
text-decoration-style: solid | double | dotted | dashed | wavy;
solid
实线。
dashed
虚线。
dotted
点划线。
wavy
波浪线。
Android | iOS | web | |
---|---|---|---|
solid | x | x | 4.0 |
dashed | x | x | 4.0 |
dotted | x | x | 4.0 |
wavy | x | x | 4.0 |
Chrome | Edge | Firefox | Opera | Safari | IE | |
---|---|---|---|---|---|---|
text-decoration-style | √( 57 ) | √( 79 ) | √( 36 ) | √( 44 ) | √( 12.1 ) | x |
text-decoration-style 样式不支持继承