Home>Article>Web Front-end> What are the properties of css to set fonts?
The css properties for setting fonts include: font, font-family, font-size, font-style, font-variant, font-weight, "@font-face", font-size-adjust, font- stretch.
The operating environment of this tutorial: Windows 7 system, CSS3 version, Dell G3 computer.
Font (Font) Attributes
Description | CSS | |
---|---|---|
Set all font properties in one declaration | 1 | ##font -family |
1 | font-size | |
1 | ##font-style | |
1 | ##font- variant | Specifies the font style of the text |
font-weight | Specifies the thickness of the font | |
@font-face | A rule that allows websites to download and use other fonts than "Web-safe" fonts | |
font-size-adjust | Specifies the aspect value for the element | |
font-stretch | Shrink or stretch the current font family | |
(Learning video sharing: | css video tutorial
The above is the detailed content of What are the properties of css to set fonts?. For more information, please follow other related articles on the PHP Chinese website!