CSS alle eiendom
Voorbeeld
Verander al die eienskappe wat op die element of die element se ouer toegepas is na hul aanvanklike waarde:
div
{
background-color: yellow;
color: red;
all: initial;
}
Definisie en gebruik
Die all
eiendom herstel alle eiendomme, behalwe unicode-bidi en rigting, na hul aanvanklike of oorgeërfde waarde.
Standaard waarde: | geen |
---|---|
Geërf: | geen |
Animateerbaar: | geen. Lees oor animeerbaar |
Weergawe: | CSS3 |
JavaScript-sintaksis: | voorwerp .style.all="initial" |
Blaaierondersteuning
Die nommers in die tabel spesifiseer die eerste blaaierweergawe wat die eiendom ten volle ondersteun.
Property | |||||
---|---|---|---|---|---|
all | 37.0 | 79.0 | 27.0 | 9.1 | 24.0 |
CSS-sintaksis
all: initial|inherit|unset;
Eiendomswaardes
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 |