CSS všechny vlastnosti
Příklad
Změňte všechny vlastnosti použité na prvek nebo nadřazený prvek na jejich počáteční hodnotu:
div
{
background-color: yellow;
color: red;
all: initial;
}
Definice a použití
Tato all
vlastnost obnoví všechny vlastnosti, kromě unicode-bidi a direction, na jejich počáteční nebo zděděnou hodnotu.
Výchozí hodnota: | žádný |
---|---|
Zděděno: | Ne |
Animovatelné: | Ne. Přečtěte si o tématu Animable |
Verze: | CSS3 |
Syntaxe JavaScriptu: | objekt .style.all="počáteční" |
Podpora prohlížeče
Čísla v tabulce určují první verzi prohlížeče, která plně podporuje vlastnost.
Property | |||||
---|---|---|---|---|---|
all | 37.0 | 79.0 | 27.0 | 9.1 | 24.0 |
Syntaxe CSS
all: initial|inherit|unset;
Hodnoty vlastností
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 |