सीएसएस अलगाव संपत्ति
उदाहरण
आईडी = "ई" वाले तत्व के लिए एक नया स्टैकिंग संदर्भ बनाएं:
#e {
isolation: isolate;
}
परिभाषा और उपयोग
संपत्ति परिभाषित करती है कि isolation
क्या किसी तत्व को एक नई स्टैकिंग सामग्री बनाना चाहिए।
नोट:
पृष्ठभूमि-मिश्रण-मोड या मिश्रण-मिश्रण-मोड के साथ isolation
उपयोग किए जाने पर संपत्ति सहायक होती है।
डिफ़ॉल्ट मान: | ऑटो |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS3 |
जावास्क्रिप्ट सिंटैक्स: | वस्तु .style.isolation = "पृथक" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
isolation | 41.0 | 79.0 | 36.0 | Yes | 30.0 |
सीएसएस सिंटेक्स
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 |
संबंधित पृष्ठ
एचटीएमएल डोम संदर्भ: अलगाव संपत्ति