Set div height equal to screen size

后端 未结 6 1619
情深已故
情深已故 2020-11-30 02:10

I have a div element in twitter-bootstrap which will have content that will overflow vertically outside the screen.

I would like the div to take the height of the si

6条回答
  •  猫巷女王i
    2020-11-30 02:58

    Use simple CSS height: 100%; matches the height of the parent and using height: 100vh matches the height of the viewport.

    Use vh instead of %;

提交回复
热议问题