CSS tutta la proprietà
Esempio
Modifica tutte le proprietà applicate all'elemento o al genitore dell'elemento al loro valore iniziale:
div
{
background-color: yellow;
color: red;
all: initial;
}
Definizione e utilizzo
La all
proprietà reimposta tutte le proprietà, a parte unicode-bidi e direction, al valore iniziale o ereditato.
Valore di default: | nessuno |
---|---|
Ereditato: | no |
Animabile: | no. Leggi su animabile |
Versione: | CSS3 |
sintassi JavaScript: | oggetto .style.all="initial" |
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
all | 37.0 | 79.0 | 27.0 | 9.1 | 24.0 |
Sintassi CSS
all: initial|inherit|unset;
Valori di proprietà
Value | Description |
---|---|
initial | Changes all the properties applied to the element or the element's parent to their initial value |
inherit | Changes all the properties applied to the element or the element's parent to their parent value |
unset | Changes all the properties applied to the element or the element's parent to their parent value if they are inheritable or to their initial value if not |