English
font-weight CSS 属性指定了字体的粗细程度。一些字体只提供 normal 和 bold 两种值。
font-weight: <font-weight-absolute>{1,2};
normal
正常粗细。与 400 等值。
bold
加粗。与 700 等值。
400
Normal
700
Bold
| Platform | default |
|---|---|
| app-uvue | normal |
| web | normal |
| Android version | Android uni-app | Android uni-app-x | iOS version | iOS uni-app | iOS uni-app-x | |
|---|---|---|---|---|---|---|
| font-weight | 5.0 | √ | 3.9+ | 9.0 | √ | - |
font-weight 样式不支持继承