css font-style property how to use?

font-style property definition and usage

In the css, font-style property is use to set the text font style. All current major browsers support this attribute; font-style property is set in italics, tilt or normal font. Italic font in the font family usually defined as a separate font. In theory, a user agent can be calculated according to the normal font italic font.

font-style attribute syntax

css syntax: font-style: normal / italic / oblique / inherit

JavaScript语法:object.style.fontStyle="italic"

font-style attribute specification

normal: default browser to display a standard font style

italic: The browser displays a italic font style

oblique: The browser displays a slanted font style

inherit: the provisions should inherit from the parent element font style

Examples

These are the details of how css font-style property with

 

 

Guess you like

Origin www.cnblogs.com/webjishu/p/11930515.html