본문 바로가기

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

MintState 2016년 11월 15일 오후 5:47 조회 9421

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

적용

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

풀어줄 때

$("body").unbind('touchmove');
공유 X Facebook LINE QR 코드

댓글 0개

첫 댓글을 남겨보세요.