1、flex-direction属性

flex-direction属性决定主轴的方向(即项目的排列方向)。

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

row row-reverse column column-reverse
1
2
3
4
1
2
3
4
1
2
3
4
1
2
3
4