스타일 flexBasis 속성
예시
플렉스 아이템의 초기 길이를 200픽셀로 설정하세요:
document.getElementById("myBlueDiv").style.flexBasis = "200px";
정의 및 사용
flexBasis 속성은 유연한 항목의 초기 길이를 지정합니다.
참고: 요소가 유연한 항목이 아닌 경우 flexBasis 속성은 효과가 없습니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
flexBasis | Yes | 11.0 | Yes | 9.0 | Yes |
통사론
flexBasis 속성을 반환합니다.
object.style.flexBasis
flexBasis 속성을 설정합니다.
object.style.flexBasis = "number|auto|initial|inherit"
속성 값
Value | Description |
---|---|
number | A length unit, or percentage, specifying the initial length of the flexible item(s) |
auto | Default value. The length is equal to the length of the flexible item. If the item has no length specified, the length will be according to its content |
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 참조: 플렉스 기반 속성
HTML DOM STYLE 참조: flex 속성
HTML DOM STYLE 참조: flexDirection 속성
HTML DOM STYLE 참조: flexFlow 속성
HTML DOM STYLE 참조: flexGrow 속성
HTML DOM STYLE 참조: flexShrink 속성
HTML DOM STYLE 참조: flexWrap 속성
❮ 스타일 개체