Home>Article>Web Front-end> What are the properties of css to set fonts?

What are the properties of css to set fonts?

青灯夜游
青灯夜游 Original
2021-04-28 14:15:37 9892browse

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.

What are the properties of css to set fonts?

The operating environment of this tutorial: Windows 7 system, CSS3 version, Dell G3 computer.

Font (Font) Attributes

##Attributes Description CSS ##font ##font -family Specifies the font family of the text 1 font-size Specifies the font size of the text 1 Specifies the font style of the text ##font- variant Specifies the font style of the text 1 font-weight Specifies the thickness of the font 1 @font-face A rule that allows websites to download and use other fonts than "Web-safe" fonts 3 font-size-adjust Specifies the aspect value for the element 3 font-stretch Shrink or stretch the current font family 3 css video tutorial )
Set all font properties in one declaration 1
##font-style
1
(Learning video sharing:

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn