css font-variant 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 set of typefaces

Plural: fonts

variant

英[ˈveəriənt] 美[ˈveriənt]

n. (word, etc.) variant, (character sound) transliteration; [生] variant, variant; deformation, variable, transformation; [unified] variant

adj. Variation ; Different, different, inconsistent; diverse; variable, indefinite

Plural: variants

css font-variant propertysyntax

Function: Set the small caps font to display text, which means that all lowercase letters will be converted to uppercase, but all letters using small caps font will have a smaller font size compared to the rest of the text Smaller size.

Syntax: normal Default value. The browser will display a standard font.​ small-caps ​ The browser will display a font with small caps letters. inherit specifies that the value of the font-variant attribute should be inherited from the parent element.

Description: This attribute is mainly used to define small uppercase text. In theory, the user agent can calculate the small caps font based on the normal font.

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

css font-variant propertyexample

<html>
<head>
<style type="text/css">
p.normal {font-variant: normal}
p.small {font-variant: small-caps}
</style>
</head>
<body>
<p class="normal">php中文网</p>
<p class="small">php中文网视频教程</p>
</body>

</html>
Run instance »

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

Popular Recommendations

Home

Videos

Q&A