css font-style property


  Translation results:

font

英[fɒnt] 美[fɑ:nt]

n. Font; font; baptistery (located in a church, often made of stone ); (same font and size) a pair of typefaces

Plural: fonts

style

英[staɪl] 美[staɪl]

n. Way; style; fashion; appearance, taste

vt. design; title; shape for...

vi. To make it conform to the popular style; to use a carving knife to make decorative paintings

Third person singular: styles Plural: styles Present participle: styling Past tense: styled Past participle: styled

css font-style propertysyntax

Function: Define the font style.

Syntax: normal Default value. The browser displays a standard font style. italic The browser will display an italic font style. oblique The browser will display an slanted font style. inherit specifies that the font style should be inherited from the parent element.

Description: This property setting uses italic, italic or normal font. An italic font is usually defined as an individual font within a font family. Theoretically, the user agent can calculate an italic font based on the normal font.

Note: All major browsers support the font-style attribute.

css font-style propertyexample

<html>
<head>
<style type="text/css">
p.normal {font-style:normal}
p.italic {font-style:italic}
p.oblique {font-style:oblique}
</style>
</head>

<body>
<p class="normal">php中文网</p>
<p class="italic">php视频教程</p>
<p class="oblique">php程序员词典</p>
</body>

</html>

Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A