스타일 크기 조정 속성
예시
<div> 요소를 크기 조정 가능하게 만듭니다.
document.getElementById("myDIV").style.resize = "both";
정의 및 사용
크기 조정 속성은 사용자가 요소의 크기를 조정할 수 있는지 여부를 지정합니다.
참고: 크기 조정 속성은 계산된 오버플로 값이 "표시"가 아닌 요소에 적용됩니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
resize | Yes | 79.0 | Yes | Yes | 15.0 |
통사론
크기 조정 속성을 반환합니다.
object.style.resize
크기 조정 속성을 설정합니다.
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
속성 값
Value | Description |
---|---|
none | Default value. The user cannot resize the element |
both | The user can adjust both the height and the width of the element |
horizontal | The user can adjust the width of the element |
vertical | The user can adjust the height of the element |
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 참조: 속성 크기 조정
❮ 스타일 개체