Skip to content

모바일웹에서 레이어를 띄우면 본창 스크롤 안되게 하는 방법

MintState November 15, 2016 at 5:47 PM Views 9421

모바일웹에서 레이어를 띄우면 본창 스크롤 안되게 하는 방법

적용

$("body").css({overflow:'hidden'}).bind('touchmove', function(e){e.preventDefault()});

풀어줄 때

$("body").unbind('touchmove');
Share X Facebook LINE QR code

0 comments

Be the first to comment.