diff --git a/app/views/layouts/_public_left_info.html.erb b/app/views/layouts/_public_left_info.html.erb index b608c93b0..691ace887 100644 --- a/app/views/layouts/_public_left_info.html.erb +++ b/app/views/layouts/_public_left_info.html.erb @@ -70,4 +70,13 @@ }); }); + + //页面缩放时调整整个页面和左侧导航栏的距离 + $(window).resize(function() { + if($(window).width()<1300){ + $(".newContainer").css("padding-left","60px"); + }else{ + $(".newContainer").css("padding-left","0px"); + } + }); \ No newline at end of file