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>
Click the "Run instance" button to view the online instance
Popular Recommendations
- GPD announces release date and new cheaper 32 GB RAM variant for innovative AMD convertible laptop
- Qualcomm Snapdragon 8 Gen 5 rumoured to get a massive clock speed bump, but only for one variant
- Xiaomi launches new transparent power bank with 212W fast charging support
- Valve is testing ARM64 support for popular games, sparking speculations about future hardware
- Lenovo Legion Go Gen 2 gaming handheld officially mentioned for the first time in company brochure
- Deal | Unbeatable 66% discount on Samsung\'s 42-inch OLED 4K S90D HDR Smart TV with 144Hz - Lowest price ever