शैली पाठअतिप्रवाह संपत्ति
उदाहरण
टेक्स्ट ओवरफ्लो प्रॉपर्टी बदलें:
document.getElementById("myDIV").style.textOverflow = "ellipsis";
परिभाषा और उपयोग
टेक्स्ट ओवरफ्लो प्रॉपर्टी निर्दिष्ट करती है कि क्या होना चाहिए जब टेक्स्ट युक्त तत्व को ओवरफ्लो कर देता है।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
textOverflow | Yes | Yes | Yes | Yes | Yes |
वाक्य - विन्यास
टेक्स्ट ओवरफ्लो प्रॉपर्टी लौटाएं:
object.style.textOverflow
टेक्स्ट ओवरफ्लो प्रॉपर्टी सेट करें:
object.style.textOverflow = "clip|ellipsis|string|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
clip | Default value. Clips the text |
ellipsis | Render an ellipsis ("...") to represent clipped text |
string | Render the given string to represent clipped text |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | क्लिप |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, किसी तत्व की टेक्स्ट-ओवरफ़्लो प्रॉपर्टी का प्रतिनिधित्व करती है |
सीएसएस संस्करण | CSS3 |
संबंधित पृष्ठ
सीएसएस संदर्भ: टेक्स्ट-ओवरफ़्लो प्रॉपर्टी
❮ स्टाइल ऑब्जेक्ट