शैली अलगाव संपत्ति
उदाहरण
आईडी = "डी" वाले तत्व के लिए एक नया स्टैकिंग संदर्भ बनाएं:
document.getElementById("d").style.isolation = "isolate";
परिभाषा और उपयोग
आइसोलेशन प्रॉपर्टी परिभाषित करती है कि क्या किसी तत्व को एक नई स्टैकिंग सामग्री बनानी चाहिए।
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
isolation | 41.0 | 79.0 | 36.0 | Yes | 30.0 |
वाक्य - विन्यास
अलगाव संपत्ति लौटाएं:
object.style.isolation
अलगाव संपत्ति सेट करें:
object.style.isolation = "auto|isolate|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
auto | Default. A new stacking context is created only if one of the properties applied to the element requires it |
isolate | A new stacking context must be created |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | ऑटो |
---|---|
सीएसएस संस्करण | CSS3 |
संबंधित पृष्ठ
सीएसएस संदर्भ: अलगाव संपत्ति
❮ स्टाइल ऑब्जेक्ट