css弹窗的滚动条显示(当与主页面的滚动条冲突时,可以试试)
.scrollArr::-webkit-scrollbar{
width:9px;
height;9px;
}
.scrollArr::-webkit-scrollbar-track{
background:#f3f3f3;
}
.scrollArr::-webkit-scrollbar-thumb{
-webkit-border-radius:3px;
border-radius:3px;
background:#ccc;
}
定义一个shadow,渲染整个页面
<div id="shadow"
style="display:none;background-color:#222222;width:100%;height:100%;position:fixed;opcity:0.5;z-index=9998;">
</div>
弹窗显示
<div id="A"
style="display:none;position:fixed;width:70%;height:80%;z-index:9999;left:15%;top:15%;">
<div id="B" style="width:100%;height:75%;background-color:white;">
<div style="">(自己写一些弹窗的标题)</div>
</div>
//在写一个关闭弹窗的按钮
<div style="height:50px;margin-top:10px;text-align:center;"
onclick="$('#A').hide();$('#shadow').hide()">
<img src="(取消图标自定义)" alt="">
</div>
</div>