What are the properties of css to set fonts?

青灯夜游
Release: 2023-01-05 16:12:20
Original
9871 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!