스타일 flexFlow 속성
예시
유연한 항목이 줄 바꿈 없이 열에 표시되도록 합니다.
document.getElementById("main").style.flexFlow = "column nowrap";
정의 및 사용
flexFlow 속성은 flexDirection 및 flexWrap 속성의 약식 속성입니다.
flexDirection 속성은 유연한 항목의 방향을 지정합니다.
flexWrap 속성은 유연한 항목을 줄 바꿈할지 여부를 지정합니다.
참고: 요소가 유연한 항목이 아닌 경우 flexFlow 속성은 효과가 없습니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
flexFlow | Yes | 11.0 | Yes | 9.0 | Yes |
통사론
flexFlow 속성을 반환합니다.
object.style.flexFlow
flexFlow 속성을 설정합니다.
object.style.flexFlow = "flex-direction flex-wrap|initial|inherit"
속성 값
Value | Description |
---|---|
flex-direction | Possible values: row row-reverse column column-reverse initial inherit Default value is "row". Specifying the direction of the flexible items |
flex-wrap | Possible values: nowrap wrap wrap-reverse initial inherit Default value is "nowrap". Specifying whether the flexible items should wrap or not |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 행 지금 랩 |
---|---|
반환 값: | 요소의 flex-flow 속성을 나타내는 문자열 |
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: flex-flow 속성
HTML DOM STYLE 참조: flex 속성
HTML DOM STYLE 참조: flexBasis 속성
HTML DOM STYLE 참조: flexDirection 속성
HTML DOM STYLE 참조: flexGrow 속성
HTML DOM STYLE 참조: flexShrink 속성
HTML DOM STYLE 참조: flexWrap 속성
❮ 스타일 개체