简体中文
CSS 属性 text-decoration-thickness 用于设置元素中文本所使用的装饰线(如 line-through、underline 或 overline)的笔触厚度。
Android | iOS | web |
---|---|---|
x | x | 4.0 |
text-decoration-thickness: auto | from-font | <length> | <percentage> ;
auto
由浏览器为文本装饰线选择合适的厚度。
from-font
如果字体文件中包含了首选的厚度值,则使用字体文件的厚度值。如果字体文件中没有包含首选的厚度值,则效果和设置为 auto 一样,由浏览器选择合适的厚度值。
Android | iOS | web | |
---|---|---|---|
auto | x | x | 4.0 |
from-font | x | x | 4.0 |
Chrome | Edge | Firefox | Opera | Safari | IE | |
---|---|---|---|---|---|---|
text-decoration-thickness | √( 89 ) | √( 89 ) | √( 70 ) | √( 75 ) | √( 12.1 ) | x |
text-decoration-thickness 样式不支持继承