From da151894f6ff7f15757c36d44cd1d2a7ab79f640 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 7 Jul 2017 14:52:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E7=BC=A9=E5=B0=8F?= =?UTF-8?q?=E5=90=8E=E5=B7=A6=E4=BE=A7=E5=AF=BC=E8=88=AA=E6=9D=A1=E9=83=A8?= =?UTF-8?q?=E5=88=86=E4=B8=8D=E9=81=AE=E6=8C=A1=E5=9B=BA=E5=AE=9A=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/_public_left_info.html.erb | 9 +++++++++ 1 file changed, 9 insertions(+) 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