스타일 격리 속성
예시
id="d"인 요소에 대한 새 스택 컨텍스트를 만듭니다.
document.getElementById("d").style.isolation = "isolate";
정의 및 사용
격리 속성은 요소가 새 스택 콘텐츠를 생성해야 하는지 여부를 정의합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
isolation | 41.0 | 79.0 | 36.0 | Yes | 30.0 |
통사론
격리 속성을 반환합니다.
object.style.isolation
격리 속성을 설정합니다.
object.style.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 |
기술적 세부 사항
기본값: | 자동 |
---|---|
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: 격리 속성
❮ 스타일 개체