# font-weight

font-weight CSS 属性指定了字体的粗细程度。一些字体只提供 normal 和 bold 两种值。

# uni-app x 兼容性

Android iOS web
3.9 4.11 4.0

# 语法

font-weight: <font-weight-absolute>{1,2};

# font-weight 的属性值

normal 正常粗细。与 400 等值。

bold 加粗。与 700 等值。

400 正常粗细,与 normal 等值。

700 加粗,与 bold 等值。

# 默认值

normal

# 适用组件

# 兼容性

# font-weight 的属性值兼容性

Android iOS web
normal 3.9 4.11 4.0
bold 3.9 4.11 4.0
400 3.9 4.11 4.0
700 3.9 4.11 4.0

# 浏览器兼容性

Chrome Edge Firefox Opera Safari IE
font-weight √( 2 ) √( 12 ) √( 1 ) √( 3.5 ) √( 1 ) √( 3 )

# App平台差异

font-weight 样式不支持继承

# 参见