सीएसएस फ़ॉन्ट-शैली संपत्ति
उदाहरण
तीन पैराग्राफ के लिए अलग-अलग फॉन्ट स्टाइल सेट करें:
p.a {
font-style: normal;
}
p.b {
font-style: italic;
}
p.c {
font-style: oblique;
}
परिभाषा और उपयोग
संपत्ति पाठ के font-style
लिए फ़ॉन्ट शैली निर्दिष्ट करती है।
डिफ़ॉल्ट मान: | साधारण |
---|---|
विरासत में मिला: | हां |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | सीएसएस 1 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.fontStyle = "इटैलिक" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
font-style | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
सीएसएस सिंटेक्स
font-style: normal|italic|oblique|initial|inherit;
सम्पत्ति की कीमत
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 |
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस फ़ॉन्ट
सीएसएस संदर्भ: फ़ॉन्ट गुण
एचटीएमएल डोम संदर्भ: फ़ॉन्ट स्टाइल संपत्ति