How to stretch flex child to fill height of the container?

后端 未结 5 640
故里飘歌
故里飘歌 2020-11-28 09:29

I need to stretch yellow child to fill all height of parent. Without setting parent height. Height of parent should be dependent on blue child text. https://jsfiddle.net

5条回答
  •  天涯浪人
    2020-11-28 09:49

    Remove

    height:100%;

    and instead do something like this example :

    Item 1
    Item 2

    above example will show you what you want.

提交回复
热议问题