目录                  

                    性布局学习-介绍(一)      

                    弹性布局学习-详解 flex-direction【决定主轴的方向】(二) 

                    弹性布局学习-详解 justify-content(三) 

                    弹性布局学习-详解 align-items(四) 

                    弹性布局学习-详解flex-wrap(五)             

              

 

flex-wrap

 

          控制是否换行,包括wrap、nowrap

 

nowrap

弹性布局学习-详解flex-wrap(五)

 

  section ul {
            display: flex;
            flex-wrap: nowrap;
            min-height: 600px;
        }

        section li {
            width: 200px;
            height: 200px;
            text-align: center;
            line-height: 200px;
            margin: 10px;
            background-color: pink;
            list-style:none;
        }

 

 

 

wrap

弹性布局学习-详解flex-wrap(五)

 

  section ul {
            display: flex;
            flex-wrap: wrap;
            min-height: 600px;
        }

        section li {
            width: 200px;
            height: 200px;
            text-align: center;
            line-height: 200px;
            margin: 10px;
            background-color: pink;
            list-style:none;
        }

 

 

                          

 

                    性布局学习-介绍(一)      

                    弹性布局学习-详解 flex-direction【决定主轴的方向】(二) 

                    弹性布局学习-详解 justify-content(三) 

                    弹性布局学习-详解 align-items(四) 

                    弹性布局学习-详解flex-wrap(五)             

              

 

flex-wrap

 

          控制是否换行,包括wrap、nowrap

 

nowrap

弹性布局学习-详解flex-wrap(五)

 

  section ul {
            display: flex;
            flex-wrap: nowrap;
            min-height: 600px;
        }

        section li {
            width: 200px;
            height: 200px;
            text-align: center;
            line-height: 200px;
            margin: 10px;
            background-color: pink;
            list-style:none;
        }

 

 

 

wrap

弹性布局学习-详解flex-wrap(五)

 

  section ul {
            display: flex;
            flex-wrap: wrap;
            min-height: 600px;
        }

        section li {
            width: 200px;
            height: 200px;
            text-align: center;
            line-height: 200px;
            margin: 10px;
            background-color: pink;
            list-style:none;
        }

 

 

                          

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2021-07-10
  • 2021-08-08
  • 2021-06-15
  • 2021-04-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2021-05-24
  • 2021-05-01
相关资源
相似解决方案