flex布局中的主轴和侧轴的确定

1.主轴和侧轴是通过flex-direction确定的

如果flex-direction是row或者row-reverse,那么主轴就是justify-contain

如果flex-direction是column或者column-reverse,那么主轴就是align-items

猜你喜欢

转载自www.cnblogs.com/luguankun/p/10386233.html
今日推荐