Proprietà di isolamento CSS
Esempio
Crea un nuovo contesto di impilamento per l'elemento con id="e":
#e {
isolation: isolate;
}
Definizione e utilizzo
La isolation
proprietà definisce se un elemento deve creare un nuovo contenuto di impilamento.
Nota: la isolation
proprietà è utile se utilizzata con
la modalità di fusione in background o la modalità di fusione combinata.
Valore di default: | auto |
---|---|
Ereditato: | no |
Animabile: | no. Leggi su animabile |
Versione: | CSS3 |
sintassi JavaScript: | oggetto .style.isolation="isolare" |
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
isolation | 41.0 | 79.0 | 36.0 | Yes | 30.0 |
Sintassi CSS
isolation: auto|isolate|initial|inherit;
Valori di proprietà
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 |
Pagine correlate
Riferimento HTML DOM: la proprietà di isolamento