3 主轴对齐

flex-pack:

flex-pack 属性定义了伸缩项目在主轴上的对齐方式。同新版语法的 justify-content 属性。

-ms-flex-pack:start | center | end | justify

该属性有5个值:

  • start(默认值):设置伸缩项目从开始位置对齐。
  • center:设置伸缩项目居中对齐。
  • end:设置伸缩项目从结束位置对齐。
  • justify:设置伸缩项目两端对齐
  • distribue: 伸缩项目平均分布,类似于新版语法中justify-content 属性的值 space-around

results matching ""

    No results matching ""