CSS 격리 속성
예시
id="e"인 요소에 대한 새 스태킹 컨텍스트를 만듭니다.
#e {
isolation: isolate;
}
정의 및 사용
isolation
속성은 요소가 새 스택 콘텐츠를 생성해야 하는지 여부를 정의합니다 .
참고: 이 속성은
배경 혼합 모드 또는 혼합 혼합 모드 isolation
와 함께 사용할 때 유용 합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
isolation | 41.0 | 79.0 | 36.0 | Yes | 30.0 |
CSS 구문
isolation: auto|isolate|initial|inherit;
속성 값
Value | Description |
---|---|
auto | Default. A new stacking context is created only if one of the properties applied to the element requires it |
isolate | A new stacking context must be created |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
관련 페이지
HTML DOM 참조: 격리 속성