सीएसएस पाठ-सजावट-मोटाई संपत्ति
उदाहरण
<h1>, <h2>, <h3>, और <h4> तत्वों के लिए डेकोरेशन लाइन की अलग मोटाई सेट करें:
h1 {
text-decoration: underline;
text-decoration-thickness: auto;
}
h2 {
text-decoration: underline;
text-decoration-thickness: 5px;
}
h3 {
text-decoration: underline;
text-decoration-thickness: 50%;
}
/* Use shorthand property */
h4 {
text-decoration:
underline solid red 50%;
}
परिभाषा और उपयोग
संपत्ति सजावट लाइन की text-decoration-thickness
मोटाई निर्दिष्ट करती है।
डिफ़ॉल्ट मान: | ऑटो |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | नहीं, व्यक्तिगत गुण देखें । एनिमेटेबल के बारे में पढ़ें |
संस्करण: | सीएसएस4 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.textDecorationThickness="5px" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
text-decoration-thickness | 89.0 | 89.0 | 70.0 | 12.1 | 75.0 |
सीएसएस सिंटेक्स
text-decoration-thickness:
auto|from-font|length/percentage|initial|inherit;
सम्पत्ति की कीमत
Value | Description |
---|---|
auto | The browser chooses the thickness of the decoration line |
from-font | If a font file contains information about a preferred thickness, use that value. If not, behave as auto |
length/percentage | Specifies the thickness as a length or % |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
संबंधित पृष्ठ
सीएसएस संदर्भ: पाठ-सजावट संपत्ति
सीएसएस ट्यूटोरियल: सीएसएस टेक्स्ट डेकोरेशन