How to force child div to be 100% of parent div's height without specifying parent's height?

前端 未结 26 2179
刺人心
刺人心 2020-11-22 06:52

I have a site with the following structure:

<
26条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 07:43

    .row-eq-height {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display:         flex;
     }
    

    From:

    http://getbootstrap.com.vn/examples/equal-height-columns/equal-height-columns.css

    states bootstrap but you do not need bootstrap to use this. Answering this old question, as this worked for me, and seems pretty easy to implement.

    This was the same answer I provided to this Question

提交回复
热议问题