美文网首页
flex-direction

flex-direction

作者: answer6 | 来源:发表于2020-10-27 22:52 被阅读0次
    • flex-direction 参数值是确定主轴是哪一条线。

    .box { flex-direction: row | row-reverse | column | column-reverse; }


    • row(默认值):主轴为水平方向,起点在左端。
    • row-reverse:主轴为水平方向,起点在右端。
    • column:主轴为垂直方向,起点在上沿。
    • column-reverse:主轴为垂直方向,起点在下沿。

    相关文章

      网友评论

          本文标题:flex-direction

          本文链接:https://www.haomeiwen.com/subject/mvvxvktx.html