遮罩效果:
<style type="text/css">
.rule_png{width:100%; height:100%; position:fixed; left:0; top:0; overflow:hidden; z-index:-1; opacity:0;transition:0.5s;-webkit-transition:0.5s;}
.rule_png.current{opacity:1; z-index:1;}
.rule_png>div{width:100%; margin:0 auto; max-width:514px; position:relative; top:130px; height:100%; background:url('<%=ctx%>/css/lottery/fx_png.png') no-repeat center top; background-size:100%;}
.mask{background:#000;opacity:0.6;width: 100%;position: fixed;top:0;left:0;bottom:0;display: none;}
</style>
<!-- 规则提示 弹出begin -->
<div class="rule_png"><div></div></div>
<!--遮罩 -->
<div class="mask"></div>
HTML遮罩效果
最新推荐文章于 2025-03-12 11:11:17 发布