设置元素样式为 display: flex 或 display: inline-flex, 让元素变成flex容器, 从而能够经过flex模式布局它的子元素.布局
值 row | row-reverse | column | column-reverse
默认值 rowflex
值 nowrap | wrap | wrap-reverse
默认值 nowrapspa
值 <flex-direction> ‖ <flex-wrap>
默认值 row nowrap对象
值 flex-start | flex-end | center | space-between | space-around |space-evenly
默认值 flex-startit
值 flex-start | flex-end | center | baseline | stretch
默认值 stretch io
值 auto |flex-start | flex-end | center | baseline | stretch
默认值 auto容器
值 flex-start | flex-end | center | space-between | space-around |space-evenly | stretch
默认值 stretch样式
值 <number>
默认值 0di
值 <number>
默认值 1co
值 auto | <length> | <percentage>
默认值 auto
值 [ <flex-grow> <flex-shrink>? ‖ <flex-basis> ] | none默认值 0 1 auto