在手机上禁止浏览器的网页滚动

document.body.addEventListener('touchmove', function (event) {
    event.preventDefault();
}, false);

 

posted @ 2016-05-05 15:29  webnote  阅读(108)  评论(0编辑  收藏  举报