Stretch child div height to fill parent that has dynamic height

前端 未结 5 2087
执笔经年
执笔经年 2020-12-02 12:37

As it can be seen in the following fiddle, I have two divs, contained in a parent div that have stretched to contain the big div, my goal is to mak

5条回答
  •  醉梦人生
    2020-12-02 13:29

    https://www.youtube.com/watch?v=jV8B24rSN5o

    I think you can use display as grid:

    .parent { display: grid };
    

提交回复
热议问题