CSS toutes les propriétés
Exemple
Remplacez toutes les propriétés appliquées à l'élément ou au parent de l'élément par leur valeur initiale :
div
{
background-color: yellow;
color: red;
all: initial;
}
Définition et utilisation
La all
propriété réinitialise toutes les propriétés, à l'exception de unicode-bidi et direction, à leur valeur initiale ou héritée.
Valeur par défaut: | rien |
---|---|
Hérité: | non |
Animable : | non. En savoir plus sur l'animation |
Version: | CSS3 |
Syntaxe JavaScript : | objet .style.all="initial" |
Prise en charge du navigateur
Les nombres dans le tableau indiquent la première version du navigateur qui prend entièrement en charge la propriété.
Property | |||||
---|---|---|---|---|---|
all | 37.0 | 79.0 | 27.0 | 9.1 | 24.0 |
Syntaxe CSS
all: initial|inherit|unset;
Valeurs de propriété
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 |