소스 검색

修正了下在小分辨率屏幕的显示问题

star7th 9 년 전
부모
커밋
d617cb1d35
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      Public/js/item/show.js

+ 3 - 3
Public/js/item/show.js

@@ -29,7 +29,7 @@ $(function(){
 
 
   //根据屏幕宽度进行响应(应对移动设备的访问)
-  if( isMobile()){
+  if( isMobile()|| $(window).width() < 1000){
       AdaptToMobile();
   }
 
@@ -38,7 +38,7 @@ $(function(){
         AdaptToMobile();
     }
 
-    else if($(window).width() < 600){
+    else if($(window).width() < 1000){
         AdaptToMobile();
     }else{
       window.location.reload();
@@ -175,7 +175,7 @@ function iFrameHeight() { 
       ifr.style.height = height + 'px';
 
       
-      if(!isMobile()){
+      if(!isMobile()&& $(window).width() > 1000){
         //调节左侧栏背景的最小高度
         if(height >  document.body.clientHeight){
           $(".doc-left").css("min-height",(height+60) + 'px');