CSS alle eigenschappen
Voorbeeld
Wijzig alle eigenschappen die zijn toegepast op het element of het bovenliggende element van het element in hun oorspronkelijke waarde:
div
{
background-color: yellow;
color: red;
all: initial;
}
Definitie en gebruik
De all
eigenschap zet alle eigenschappen, behalve unicode-bidi en direction, terug naar hun oorspronkelijke of overgenomen waarde.
Standaardwaarde: | geen |
---|---|
geërfd: | Nee |
Animeerbaar: | Nee. Lees over animeren |
Versie: | CSS3 |
JavaScript-syntaxis: | object .style.all="initial" |
Browserondersteuning
De getallen in de tabel geven de eerste browserversie aan die de eigenschap volledig ondersteunt.
Property | |||||
---|---|---|---|---|---|
all | 37.0 | 79.0 | 27.0 | 9.1 | 24.0 |
CSS-syntaxis
all: initial|inherit|unset;
Eigendomswaarden
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 |