H_demo

导航

flex 排版问题

当设置:flex布局 

justify-between  flex-wrap换行后的排版问题:

解决方法:追加一个空的元素:   

<div class="flex justify-between flex-wrap "  class="wrap"></div>

 

<style>

  .wrap:after{

    content:" ";

    width:120px

  }

</style>

 

转自:https://blog.csdn.net/qq_43299703/article/details/120526133

posted on 2022-03-02 13:41  H_demo  阅读(83)  评论(0编辑  收藏  举报