//禁止滚动条滚动
function unScroll() {
var top = $(document).scrollTop();
$(document).on('scroll.unable',function (e) {
$(document).scrollTop(top);
})
}
//移除禁止滚动条滚动
function removeUnScroll() {
$(document).unbind("scroll.unable");
}
$('body').css('overflow','hidden');页面滚动条消失,页面大小会变
来源:小结巴巴吧
网址:http://www.cnblogs.com/jiebba/p/6519736.html