实现移动端弹出层弹出的时候页面不能滑动,关闭弹出层时页面恢复滑动
摘要:思路是:显示弹层时,禁用触摸事件在你显示弹出框的时候:添加:function ShowDiv() { window.ontouchmove = function(e) { e.preventDefault && e.preventDefault(); e.retur...
阅读全文
posted @ 2015-10-15 15:53
posted @ 2015-10-15 15:53
Powered by:
博客园
Copyright © 2025 niuben
Powered by .NET 9.0 on Kubernetes