<div class="overlayer" @touchmove.prevent > </div>
/*遮罩层*/
.overlayer{
position:fixed;
left:0;
top:0;
width:100%;
height:100%;
z-index:10;
}
<div class="overlayer" @touchmove.prevent >
</div>
<div class="popup">
如果在这个div中滑动,触发的事件是不会经过overlayer的,也就无法屏蔽滑动了
</div>
<!--plan A-->
<div class="overlayer" @touchmove.prevent >
<div class="popup">
如果在这个div中滑动,触发的事件会经过overlayer,可以屏蔽滑动
</div>
</div>
<!--plan B-->
<div class="overlayer" @touchmove.prevent >
</div>
<div class="popup" @touchmove.prevent>
如果在这个div中滑动,触发的事件也会被禁用默认行为, 也可以屏蔽滑动
</div>
<div class="overlayer" @scroll.prevent > </div>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有