---
layout: single
property_name: flex-direction
---
定义了元素在 flexbox 容器中的排序方式。
元素按照与文字方向(书写模式)相同的方向,沿着主(横)轴。
元素按照与文字方向(书写模式)相反的方向,沿着主(横)轴。
元素按照与文字方向(书写模式)相同的方向,沿着纵向轴。
元素按照与文字方向(书写模式)相反的方向,沿着纵向轴。
#flex-direction
默认属性
flex-direction: row;
flex-direction: row-reverse;
flex-direction: column;
flex-direction: column-reverse;