浏览器缩小后左侧导航条部分不遮挡固定区域

This commit is contained in:
caishi 2017-07-07 14:52:41 +08:00
parent 055f1ae169
commit da151894f6
1 changed files with 9 additions and 0 deletions

View File

@ -70,4 +70,13 @@
});
});
//页面缩放时调整整个页面和左侧导航栏的距离
$(window).resize(function() {
if($(window).width()<1300){
$(".newContainer").css("padding-left","60px");
}else{
$(".newContainer").css("padding-left","0px");
}
});
</script>