百度 未成年人可在饿了么叫香烟外卖?记者调查:商家换名售卖躲避监管提供有偿代买服务近日,有网友称不少商家利用外卖平台在网上售卖香烟,还有成都的网友发现自己未成年的孩子也通过外卖软件买到了烟。

The main axis in flexbox is defined by the direction set by the flex-direction property. There are four possible values for flex-direction. These are:

  • row
  • row-reverse
  • column
  • column-reverse

Should you choose row or row-reverse then your main axis will run along the row in the inline direction.

In this image the flex-direction is row which forms the main axis

Choose column or column-reverse and your main axis will run top to bottom of the page in the block direction.

Three flex items taking up the full width of the container, displayed one below the other in code order. Flex-direction is set to column. The main axis is vertical i.e., from top to bottom

On the main axis you can control the sizing of flex items by adding any available space to the items themselves, by way of flex properties on the items. Or, you can control the space between and around items by using the justify-content property.

See also

Property reference

Further reading