The font-weight
CSS property sets the weight (or boldness) of the font. The weights available depend on the font-family that is currently set.
Default normal
Normal font weight. Same as 400
.
bold
Bold font weight. Same as 700
<number>
A <number>
value between 1 and 1000, inclusive. Higher numbers represent weights that are bolder than (or as bold as) lower numbers.
font-weight
with font-family
. Currently, lynx font-family
is just a key-value mapping not a real 'family'. And using other font-weight may cause font-family
not working.Initial value | normal |
Applies to | text |
Inherited | yes |
Animatable | no |
Not support border
and lighter
Numeric types currently only support integer values from '100' to '1000'.
The fallback logic of glyph mapping failure will vary on different platforms and system versions. In the worst case, the system default font may be fallback, resulting in the failure of custom fonts.