CSS 모든 속성
예시
요소 또는 요소의 부모에 적용된 모든 속성을 초기 값으로 변경합니다.
div
{
background-color: yellow;
color: red;
all: initial;
}
정의 및 사용
이 all
속성은 unicode-bidi 및 방향을 제외한 모든 속성을 초기 값 또는 상속된 값으로 재설정합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
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 |