- font size
body {
font-size: 20px;
}
- Font weight
normal
default style not bold
bold
bold
light
thinning
font-weight: 800;
behind the figures to determine the size of the text of400=normal 700=bold
the actual development uses more
font-weight: 800;
- Font style
font-style: italic;
italic font slanted
normal
Normalize slanted fonts
em {
font-style: normal;
}
<em>我不是倾斜的字体</em>
- css font compound attribute
compound attribute abbreviation form saves code, the
order cannot be reversed, strictly follow the order