스타일 transformStyle 속성
예시
변환된 자식 요소가 3D 변환을 유지하도록 합니다.
document.getElementById("myDIV").style.transformStyle = "preserve-3d";
정의 및 사용
transformStyle 속성은 중첩된 요소가 3D 공간에서 렌더링되는 방식을 설정하거나 반환합니다.
참고: 이 속성은 transform 속성 과 함께 사용해야 합니다 .
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
transformStyle | 36.0 | 11.0 | 16.0 | 9.0 | 23.0 |
통사론
transformStyle 속성을 반환합니다.
object.style.transformStyle
transformStyle 속성을 설정합니다.
object.style.transformStyle = "flat|preserve-3d|initial|inherit"
속성 값
Value | Description |
---|---|
flat | Default value. The child elements will NOT preserve its 3D position |
preserve-3d | The child elements will preserve its 3D position |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 평평한 |
---|---|
반환 값: | 요소의 변형 스타일 속성을 나타내는 문자열 |
CSS 버전 | CSS3 |
관련 페이지
JavaScript 스타일 개체: 속성 변환
CSS 참조: 변형 스타일 속성
❮ 스타일 개체