शैली स्पष्ट संपत्ति
उदाहरण
किसी तत्व में पाठ के बाईं ओर तैरने वाली वस्तुओं को प्रतिबंधित करें:
document.getElementById("demo").style.clear = "left";
परिभाषा और उपयोग
स्पष्ट गुण फ़्लोटिंग ऑब्जेक्ट के सापेक्ष तत्व की स्थिति सेट या लौटाता है।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
clear | Yes | Yes | Yes | Yes | Yes |
वाक्य - विन्यास
स्पष्ट संपत्ति वापस करें:
object.style.clear
स्पष्ट संपत्ति सेट करें:
object.style.clear = "none|left|right|both|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
none | Allows floating objects on both sides of the element. This is default |
left | No floating objects allowed on the left side of the element |
right | No floating objects allowed on the right side of the element |
both | No floating objects allowed on either the left or right side of the element |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | कोई नहीं |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, फ़्लोटिंग ऑब्जेक्ट्स के सापेक्ष तत्व की स्थिति का प्रतिनिधित्व करती है |
सीएसएस संस्करण | सीएसएस 1 |
और ज्यादा उदाहरण
उदाहरण
स्पष्ट संपत्ति वापस करें:
alert(document.getElementById("demo").style.clear);
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस फ्लोट
सीएसएस संदर्भ: स्पष्ट संपत्ति
❮ स्टाइल ऑब्जेक्ट