# text-decoration-thickness

CSS 属性 text-decoration-thickness 用于设置元素中文本所使用的装饰线(如 line-through、underline 或 overline)的笔触厚度。

# # Syntax

text-decoration-thickness: auto | from-font | <length> | <percentage> ;

# # Values

auto 由浏览器为文本装饰线选择合适的厚度。

from-font 如果字体文件中包含了首选的厚度值,则使用字体文件的厚度值。如果字体文件中没有包含首选的厚度值,则效果和设置为 auto 一样,由浏览器选择合适的厚度值。

# # Applicable components

# # Compatibility

# # uni-app compatibility

Android version Android uni-app Android uni-app-x iOS version iOS uni-app iOS uni-app-x
text-decoration-thickness 5.0 x 9.0 -

# # Browser compatibility

Chrome Edge Firefox Opera Safari IE
text-decoration-thickness √( 89 ) √( 89 ) √( 70 ) √( 75 ) √( 12.1 ) x

# App平台差异

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

# # See also