我已经制作了一个需要覆盖整个页面的背景。我知道这对你们大多数人来说是一个简单的问题,但是我已经尝试了一切!!!每次我尝试某些东西时,它只会覆盖父级div。我想让它覆盖整个网页!以下是我目前的情况。
<div id="bkgrd" style="z-index: 9999; display: none; position:absolute;top:25%;left:25%;right:25%;
bottom:25%;
margin:auto;
min-width:50%;
min-height:50%; background-color: #000000; opacity: 0.4;"></div>
position:absolute
或position:relative
?您能展示更多的标记吗? - Sampson