当点击页面一个button,(阻止body滚动)用fixed 弹出元素模拟新页面,给这个元素添加了overflow-y:auto;但是这个元素还是无法滚动?
.dask-list{
padding-top:70px;
display:none;
position:fixed;
top:0;
left:0;
right:0;
min-height:100%;
background:#fff;
z-index:999;
overflow-y:auto;
}
<div class"wrap">
<button>新页面</button>
</div>
<div class="dask-list">
.....
</div>
你是怎么阻止body滚动的
没有给固定宽度加这个overflow-y:auto;没用