Make div expand to occupy available height of parent container

前端 未结 9 472
别那么骄傲
别那么骄傲 2021-01-11 10:28

I have this code:

html:

short

Lorem ipsum dolor sit amet, consec
9条回答
  •  我在风中等你
    2021-01-11 11:06

    Depending on browser support you can use flex.

    The container would need:

    display: flex;
    flex-flow: column;
    

    Here's a quick demo with example markup:

    http://jsbin.com/xuwina/3/edit?html,css,output

提交回复
热议问题