सीएसएस अतिप्रवाह-लपेटें संपत्ति
उदाहरण
ब्राउज़र को लंबे शब्दों के साथ लाइनों को तोड़ने की अनुमति दें, यदि वे कंटेनर को ओवरफ्लो करते हैं:
div {
overflow-wrap: break-word;
}
परिभाषा और उपयोग
संपत्ति निर्दिष्ट करती है कि overflow-wrap
ब्राउज़र लंबे शब्दों के साथ लाइनों को तोड़ सकता है या नहीं, यदि वे कंटेनर को ओवरफ्लो करते हैं।
डिफ़ॉल्ट मान: | साधारण |
---|---|
विरासत में मिला: | हां |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS3 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.overflowWrap = "सामान्य" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
overflow-wrap | 23.0 | 18.0 | 49.0 | 6.1 | 12.1 |
सीएसएस सिंटेक्स
overflow-wrap: normal|anywhere|break-word|initial|inherit;
सम्पत्ति की कीमत
Value | Description | Play it |
---|---|---|
normal | Long words will not break, even if they overflow the container. This is default | |
anywhere | Long words will break if they overflow the container | |
break-word | Long words will break if they overflow the container | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस ओवरफ्लो