Эх сурвалжийг харах

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

star7th 9 жил өмнө
parent
commit
d617cb1d35

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

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