Equal height rows in a flex container

前端 未结 9 604
梦如初夏
梦如初夏 2020-11-22 09:28

As you can see, the list-items in the first row have same height. But items in the second row have different height

9条回答
  •  有刺的猬
    2020-11-22 09:54

    In your case height will be calculated automatically, so you have to provide the height
    use this

    .list-content{
      width: 100%;
      height:150px;
    }
    

提交回复
热议问题