弹框弹出时禁止页面滚动
//弹窗弹出
$(function(){
$("#cardMeNot").click(function(){
$("#cardTan").slideDown(500);
$("body").css({"overflow":"hidden","height":"100%"});
});
//关闭弹框
$("#tanClose").click(function(){
$("#cardTan").slideUp(500);
$("body").css({"overflow":"auto"});
});
})
http://blog.163.com/m18201093835_1/blog/static/265923023201712265053888/