스타일 flexWrap 속성
예시
필요한 경우 유연한 항목을 래핑합니다.
document.getElementById("main".style.flexWrap = "wrap";
정의 및 사용
flexWrap 속성은 유연한 항목을 줄 바꿈할지 여부를 지정합니다.
참고: 요소가 유연한 항목이 아닌 경우 flexWrap 속성은 효과가 없습니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
flexWrap | Yes | 11.0 | Yes | 9.0 | Yes |
통사론
flexWrap 속성을 반환합니다.
object.style.flexWrap
flexWrap 속성을 설정합니다.
object.style.flexWrap = "nowrap|wrap|wrap-reverse|initial|inherit"
속성 값
Value | Description |
---|---|
nowrap | Default value. Specifies that the flexible items will not wrap |
wrap | Specifies that the flexible items will wrap if necessary |
wrap-reverse | Specifies that the flexible items will wrap, if necessary, in reverse order |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 지금 랩 |
---|---|
반환 값: | 요소의 flex-wrap 속성을 나타내는 String |
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: flex-wrap 속성
HTML DOM STYLE 참조: flex 속성
HTML DOM STYLE 참조: flexBasis 속성
HTML DOM STYLE 참조: flexDirection 속성
HTML DOM STYLE 참조: flexFlow 속성
HTML DOM STYLE 참조: flexGrow 속성
HTML DOM STYLE 참조: flexShrink 속성
❮ 스타일 개체