以下问题。我的网页上需要一个 div 层。该层应在 300px 之后开始,并以网站结尾结束。
<div style =" background-color: #FCFCFC;
display: block;
height: 100%;
min-height: 100%;
height:auto !important;
overflow: hidden !important;
opacity: 0.8;
left: 0;
position: absolute;
top: 0;
width: 100%;
z-index: 1100;
overflow: hidden !important;
margin: auto;
min-height: 100%;
height:auto !important;
height:100%;
">
现在这可行,但是:我的利润不在顶部。如果我插入 margin-top:300px 网站只会随着滚动条变得越来越大。
有任何想法吗?此致