What are the css font attributes?

青灯夜游
Release: 2021-11-02 15:52:09
Original
6157 people have browsed it

css font attributes include: font, "@font-face", font-family, font-kerning, font-size, font-stretch, font-style, font-variant, font-weight, etc.

What are the css font attributes?

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

css Font (Font) Properties

##fontfont-style, font-variant, font- Shorthand properties for weight, font-size/line-height, and font-family. @font-faceRules that allow sites to download and use fonts other than "web-safe" fonts. font-familySpecifies the font family (font family) of the text. font-feature-settingsAllows control of advanced typographic features in OpenType fonts. @font-feature-valuesAllows authors to use common names in font-variant-alternate to implement features that are activated differently in OpenType. font-kerningControls the use of kerning information (letter spacing). font-language-overrideControl the use of language-specific glyphs in fonts. font-sizeSpecifies the font size of the text. font-size-adjustPreserves readability when font fallback occurs. font-stretchChoose a normal, compressed or extended font from the font family. font-styleSpecifies the font style of the text. font-synthesisControl which missing fonts (bold or italic) can be synthesized by the browser. font-variant Specifies whether text should be displayed in small caps font. font-variant-alternatesControls the use of alternative glyphs associated with alternative names defined in @font-feature-values. font-variant-capsControls the use of alternate glyphs for uppercase letters. font-variant-east-asianControls the use of alternative glyphs for East Asian scripts such as Chinese and Japanese. font-variant-ligaturesControl which ligatures and contextual forms are used in the text content applied to the element. font-variant-numericControls the use of alternative glyphs for numeric, fraction, and ordinal markers. font-variant-positionControls the use of alternative glyphs for smaller fonts that are positioned as superscript or subscript relative to the font baseline. font-weightSpecifies the thickness of the font.
(Learning video sharing:

css video tutorial)

The above is the detailed content of What are the css font attributes?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
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
Popular Tutorials
More>
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!