📜  css div 获取剩余屏幕高度 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:31.094000             🧑  作者: Mango

代码示例1
height:100vh;
/* 1vh is 1% of the browser size. With 100vh you can fill the complete height */
/* if you want the div to fill not only the size of the browser, but */
/* the complete website then use this: */
position: absolute;
height: 100%;
width: 100%;