CSS -lettertipe- eiendom
Voorbeeld
Stel verskillende fontstyle vir drie paragrawe:
p.a {
font-style: normal;
}
p.b {
font-style: italic;
}
p.c {
font-style: oblique;
}
Definisie en gebruik
Die font-style
eiendom spesifiseer die fontstyl vir 'n teks.
Standaard waarde: | normaal |
---|---|
Geërf: | ja |
Animateerbaar: | geen. Lees oor animeerbaar |
Weergawe: | CSS1 |
JavaScript-sintaksis: | voorwerp .style.fontStyle="kursief" |
Blaaierondersteuning
Die nommers in die tabel spesifiseer die eerste blaaierweergawe wat die eiendom ten volle ondersteun.
Property | |||||
---|---|---|---|---|---|
font-style | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
CSS-sintaksis
font-style: normal|italic|oblique|initial|inherit;
Eiendomswaardes
Value | Description | Play it |
---|---|---|
normal | The browser displays a normal font style. This is default | |
italic | The browser displays an italic font style | |
oblique | The browser displays an oblique font style | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Verwante bladsye
CSS-tutoriaal: CSS Font
CSS verwysing: font eiendom
HTML DOM verwysing: fontStyle eiendom