display: flex;(flex-direction,flex-wrap,flex-flow,justify-content,align-items,align-content)
flex-direction: row|row-reverse|colum|colum-reverse;
flex-wrap: nowrap|wrap|wrap-reverse;
flex-flow: ;
justify-content: flex-start|flex-end|center|space-between|space-around;
align-item: flex-start|flex-end|center|baseline|stretch;
align-content: flex-start|flex-end|center|space-between|space-around|stretch;
以下属性设置在项目(flex子集)上 order flex-grow flex-shrink flex-basis flex align-self
order属性定义项目的排列顺序。数值越小,排列越靠前,默认为0。
flex-grow属性定义项目的放大比例,默认为0,即如果存在剩余空间,也不放大。
flex-shrink属性定义了项目的缩小比例,默认为1,即如果空间不足,该项目将缩小。
flex-basis属性定义了在分配多余空间之前,项目占据的主轴空间(main size)。浏览器根据这个属性,计算主轴是否有多余空间。它的默认值为auto,即项目的本来大小。
flex属性是flex-grow, flex-shrink 和 flex-basis的简写,默认值为0 1 auto。后两个属性可选。
align-self属性允许单个项目有与其他项目不一样的对齐方式,可覆盖align-items属性。默认值为auto,表示继承父元素的align-items属性,如果没有父元素,则等同于stretch。 align-self: auto|flex-start|flex-end|center|baseline|stretch