在弹出遮罩层的时候页面不需要滚动
// 页面禁止滚动 $("html").css({ height: "100%", overflow: "hidden" }); $("body").css({ height: "100%", overflow: "hidden" });复制代码
关闭遮罩层页面滚动
// 页面滚动 $("html").css({ height: "100%", overflow: "visible" }); $("body").css({ height: "100%", overflow: "visible" });复制代码