सीएसएस पाठ-सजावट-पंक्ति संपत्ति
उदाहरण
विभिन्न प्रकार की टेक्स्ट-सजावट लाइनें सेट करें:
div.a
{
text-decoration-line: overline;
}
div.b
{
text-decoration-line: underline;
}
div.c
{
text-decoration-line: line-through;
}
div.d
{
text-decoration-line: overline underline;
}
परिभाषा और उपयोग
प्रॉपर्टी इस्तेमाल करने के लिए टेक्स्ट डेकोरेशन के प्रकार को text-decoration-line
सेट करती है (जैसे अंडरलाइन, ओवरलाइन, लाइन-थ्रू)।
युक्ति: टेक्स्ट-डेकोरेशन प्रॉपर्टी को भी देखें , जो टेक्स्ट-डेकोरेशन-लाइन, टेक्स्ट-डेकोरेशन-स्टाइल और टेक्स्ट-डेकोरेशन-कलर के लिए शॉर्ट-हैंड प्रॉपर्टी है।
नोट: आप टेक्स्ट के नीचे और ऊपर दोनों जगह लाइन प्रदर्शित करने के लिए अंडरलाइन और ओवरलाइन जैसे एक से अधिक मान भी जोड़ सकते हैं ।
डिफ़ॉल्ट मान: | कोई नहीं |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS3 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.textDecorationLine = "ओवरलाइन" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
संख्या जिसके बाद -मोज़- या -वेबकिट- पहले संस्करण को निर्दिष्ट करें जो उपसर्ग के साथ काम करता है।
Property | |||||
---|---|---|---|---|---|
text-decoration-line | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 7.1 -webkit- |
44.0 |
सीएसएस सिंटेक्स
text-decoration-line: none|underline|overline|line-through|initial|inherit;
सम्पत्ति की कीमत
Value | Description | Play it |
---|---|---|
none | Default value. Specifies no line for the text-decoration | |
underline | Specifies that a line will be displayed under the text | |
overline | Specifies that a line will be displayed over the text | |
line-through | Specifies that a line will be displayed through the text | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस टेक्स्ट
HTML DOM संदर्भ: textDecorationLine गुण