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
- 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
- Alleged early Meta Quest 3S ad suggests that the VR headset will be affordable
- Deal | 2024 Asus ROG Zephyrus G16 with RTX 4080 and gorgeous OLED display drops to all-time low