弹性盒子(Flexbox)在纵列上进行弹性布局

Flexbox 属性:

  • display: flex | flex-inline ;

    设置弹性

  • flex-direction: row | row-reverse | column | column-reverse

  • flex-wrap: nowrap | wrap | wrap-reverse

  • flex-flow: <flex-direction> || <flex-wrap>

  • justify-content: flex-start | flex-end | center | space-between | space-around

  • align-items: flex-start | flex-end | center | baseline | stretch

  • align-content: flex-start | flex-end | center | space-between | space-around | stretch

Flex Item 属性:

  • order: <integer>
  • flex-grow: <number>
  • flex-shrink: <number>
  • flex-basis: <length> | auto
  • flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]
  • align-self: auto | flex-start | flex-end | center | baseline | stretch

参考链接: