弹出遮罩层后禁止滚动

方法一:

$('.shade').bind( "touchmove", function (e) {
     e.preventDefault();
});

方法二:

$("body,.main").height($(window).height()).css({
    "overflow-y": "hidden"
});
posted @ 2016-04-29 14:00  害羞熊5  阅读(398)  评论(2编辑  收藏  举报