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:379939browse

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

##AttributesDescriptionCSS##font##font -familySpecifies the font family of the text1font-sizeSpecifies the font size of the text1Specifies the font style of the text##font- variantSpecifies the font style of the text1font-weightSpecifies the thickness of the font 1@font-faceA rule that allows websites to download and use other fonts than "Web-safe" fonts3font-size-adjustSpecifies the aspect value for the element3font-stretchShrink or stretch the current font family3css 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