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 property syntax

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 property example

   

php中文网

php中文网视频教程

Run instance »

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