Home > Article > Web Front-end > Disable scrolling effect after popping up the mask layer [implementation code]_javascript skills
Disable scrolling effect after popping up the mask layer [implementation code]_javascript skills
Method 1:
$('.shade').bind( "touchmove", function (e) { e.preventDefault(); });
Method 2:
$("body,.main").height($(window).height()).css({ "overflow-y": "hidden" });
The above is the content of disabling scrolling effect after popping up the mask layer [implementation code]_javascript skills, more related content Please pay attention to the PHP Chinese website (www.php.cn)!