Styl isolasie Eiendom
Voorbeeld
Skep 'n nuwe stapelkonteks vir die element met id="d":
document.getElementById("d").style.isolation = "isolate";
Definisie en gebruik
Die isolasie-eienskap definieer of 'n element 'n nuwe stapelinhoud moet skep.
Blaaierondersteuning
Die nommers in die tabel spesifiseer die eerste blaaierweergawe wat die eiendom ten volle ondersteun.
Property | |||||
---|---|---|---|---|---|
isolation | 41.0 | 79.0 | 36.0 | Yes | 30.0 |
Sintaksis
Gee die isolasie-eienskap terug:
object.style.isolation
Stel die isolasie-eienskap:
object.style.isolation = "auto|isolate|initial|inherit"
Eiendomswaardes
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 |
Tegniese besonderhede
Standaard waarde: | outo |
---|---|
CSS weergawe | CSS3 |
Verwante bladsye
CSS verwysing: isolasie eiendom
❮ Stylvoorwerp