即使用户正在滚动,总是有div 100%高度的诀窍是什么?
我试试这个,但它不起作用,高度仅适用于活动窗口。
<body>
[...]
<div class="popup_container">...</div>
</body>
.popup_container {
position: absolute;
background-color: rgba(0, 0, 0, 0.65);
width: 100%;
min-height: 100%; /** even this didn't work **/
top: 0;
left: 0;
z-index: 12;
}