<style> #bg{display:none;position:fixed;width:100%;height:100%;background:#000;z-index:2;top:0;left:0;opacity:0.7;} </style> <script> function showMask() { document.getElementById("bg").style.display ="block"; } function hideMask() { document.getElementById("bg").style.display ='none'; } </script> <body> <div id="bg"></div> </body>
html+js+css实现遮挡层
猜你喜欢
转载自newjava-sina-cn.iteye.com/blog/2409893
今日推荐
周排行