flex-direction
2020-10-27 本文已影响0人
answer6
- flex-direction 参数值是确定主轴是哪一条线。
.box { flex-direction: row | row-reverse | column | column-reverse; }
- row(默认值):主轴为水平方向,起点在左端。
- row-reverse:主轴为水平方向,起点在右端。
- column:主轴为垂直方向,起点在上沿。
- column-reverse:主轴为垂直方向,起点在下沿。
.box { flex-direction: row | row-reverse | column | column-reverse; }