CSS todas las propiedades
Ejemplo
Cambie todas las propiedades aplicadas al elemento o al padre del elemento a su valor inicial:
div
{
background-color: yellow;
color: red;
all: initial;
}
Definición y uso
La all
propiedad restablece todas las propiedades, además de Unicode-bidi y dirección, a su valor inicial o heredado.
Valor por defecto: | ninguna |
---|---|
Heredado: | No |
Animable: | No. Leer sobre animable |
Versión: | CSS3 |
Sintaxis de JavaScript: | objeto .style.all="inicial" |
Compatibilidad con navegador
Los números de la tabla especifican la primera versión del navegador que es totalmente compatible con la propiedad.
Property | |||||
---|---|---|---|---|---|
all | 37.0 | 79.0 | 27.0 | 9.1 | 24.0 |
Sintaxis CSS
all: initial|inherit|unset;
Valores de propiedad
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 |