Showing
1 changed file
with
2 additions
and
0 deletions
@@ -34,6 +34,7 @@ $('.nav-btn').on('touchstart', function(event) { | @@ -34,6 +34,7 @@ $('.nav-btn').on('touchstart', function(event) { | ||
34 | 34 | ||
35 | //设置boy高宽,页面不能上下滑动 | 35 | //设置boy高宽,页面不能上下滑动 |
36 | $('body').css({ | 36 | $('body').css({ |
37 | + height: $(window).height(), | ||
37 | overflow: 'hidden' | 38 | overflow: 'hidden' |
38 | }); | 39 | }); |
39 | return false; | 40 | return false; |
@@ -47,6 +48,7 @@ function hideSideBar() { | @@ -47,6 +48,7 @@ function hideSideBar() { | ||
47 | $('.sub-nav').removeClass('show'); | 48 | $('.sub-nav').removeClass('show'); |
48 | $sideNav.removeClass('on'); | 49 | $sideNav.removeClass('on'); |
49 | $('body').css({ | 50 | $('body').css({ |
51 | + height: 'auto', | ||
50 | overflow: 'auto' | 52 | overflow: 'auto' |
51 | }); | 53 | }); |
52 | } | 54 | } |
-
Please register or login to post a comment