CSSすべてのプロパティ
例
要素または要素の親に適用されているすべてのプロパティを初期値に変更します。
div
{
background-color: yellow;
color: red;
all: initial;
}
定義と使用法
このall
プロパティは、unicode-bidiとdirectionを除くすべてのプロパティを、初期値または継承された値にリセットします。
デフォルト値: | なし |
---|---|
遺伝性の: | いいえ |
アニメート可能: | 番号。アニメート可能について読む |
バージョン: | CSS3 |
JavaScript構文: | オブジェクト.style.all = "initial" |
ブラウザのサポート
表の数字は、プロパティを完全にサポートする最初のブラウザバージョンを示しています。
Property | |||||
---|---|---|---|---|---|
all | 37.0 | 79.0 | 27.0 | 9.1 | 24.0 |
CSS構文
all: initial|inherit|unset;
プロパティ値
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 |