CSS toda a propriedade
Exemplo
Altere todas as propriedades aplicadas ao elemento ou ao pai do elemento para seu valor inicial:
div
{
background-color: yellow;
color: red;
all: initial;
}
Definição e uso
A all
propriedade redefine todas as propriedades, exceto unicode-bidi e direção, para seu valor inicial ou herdado.
Valor padrão: | Nenhum |
---|---|
Herdado: | não |
Animavel: | não. Leia sobre animáveis |
Versão: | CSS3 |
Sintaxe JavaScript: | objeto .style.all="initial" |
Suporte ao navegador
Os números na tabela especificam a primeira versão do navegador que oferece suporte total à propriedade.
Property | |||||
---|---|---|---|---|---|
all | 37.0 | 79.0 | 27.0 | 9.1 | 24.0 |
Sintaxe CSS
all: initial|inherit|unset;
Valores de propriedade
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 |