CSS isolasie Eiendom
Voorbeeld
Skep 'n nuwe stapelkonteks vir die element met id="e":
#e {
isolation: isolate;
}
Definisie en gebruik
Die isolation
eienskap definieer of 'n element 'n nuwe stapelinhoud moet skep.
Let wel: Die isolation
eiendom is nuttig wanneer dit gebruik word met
agtergrond-meng-modus of meng-meng-modus.
Standaard waarde: | outo |
---|---|
Geërf: | geen |
Animateerbaar: | geen. Lees oor animeerbaar |
Weergawe: | CSS3 |
JavaScript-sintaksis: | voorwerp .style.isolation="isolate" |
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 |
CSS-sintaksis
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 |
Verwante bladsye
HTML DOM-verwysing: Die isolasie-eienskap