What is the function of the css font-style attribute
This article focuses on "what is the role of css font-style attributes", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "what is the role of css font-style attributes"!
In css, the font-style attribute defines the style of the font and sets the text font style, which specifies whether the font is italic, italic, or normal; the syntax "font-style:normal | italic | oblique;".
The operating environment of this tutorial: windows7 system, CSS3&&HTML5 version, Dell G3 computer.
In css, the font-style property is the property used to set the text font style.
The font-style property defines the style of the font, setting whether the font uses italic, tilted, or normal font styles. Italic fonts are usually defined as a separate font in the font family. In theory, the user agent can calculate an italic font based on the normal font.
Syntax: font-style:normal | italic | oblique
Attribute value:
The value describes the normal default value. The browser displays a standard font style. The italic browser displays a font style in italics. The oblique browser displays a slanted font style.
Code example:
P.normal {font-style: normal} p.italic {font-style: italic} p.oblique { Font-style: oblique} this is a test text Default normal style.
This is a test text in italic style.
This is a test text, slanting style.
Effect picture:
At this point, I believe that you have a deeper understanding of "what is the role of css font-style attributes?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!