布局写法,display:flex

flex-direction

 1 .box { 2 flex-direction: row | row-reverse | column | column-reverse; 3 } 

属性可选值的范围为row(默认)沿水平主轴由左向右排列、row-reverse沿水平主轴由右向左排列、column沿垂直主轴右上到下和column-reverse。   不换行写法

flex-wrap 1 .box{ 2 flex-wrap: nowrap | wrap | wrap-reverse; 3 } 

属性可选值的范围为nowrap(默认)不换行、wrap换行(第一行在上方)和wrap-reverse(你懂的~) 不换行写法

猜你喜欢

转载自www.cnblogs.com/cainiao-vcu/p/9036394.html