How to make div occupy remaining height?

前端 未结 11 1098
遇见更好的自我
遇见更好的自我 2020-11-27 12:49

I have this problem, I have two divs:

<
11条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 13:18

    Since you know how many pixels are occupied by the previous content, you can use the calc() function:

    height: calc(100% - 50px);
    

提交回复
热议问题