2015-09-01 33 views
0

我有一定的缺陷衝浪到我的網站時: 在ipad的Safari http://eurocom.richkid.co.il/en。 第一次衝浪時,它的所有好的 當在safari中打開新標籤時,視圖的大小因標籤的高度而改變。 所以當打開新的標籤頁,並回到舊標籤(我的網站) 有在最後一個空白,因爲它不造成調整。並在每個調整大小,我給每個部分的最低高度。所以我怎麼能解決這個問題? 錯誤圖像:最低高度 http://jpg.co.il/view/55e566d160d47.png/錯誤在ipad野生動物園空白

代碼:

SetHeight(); 
function SetHeight() 
{ 
    var height=getBrowserHeight().height; 
    $(".mainSection").css("min-height",height+"px"); 
} 
$(window).resize(function() { 
    SetHeight(); 
}); 

    function getBrowserHeight() { 
     var intH = 0; 
     var intW = 0; 

     if (typeof window.innerWidth == 'number') { 
      intH = window.innerHeight; 
      intW = window.innerWidth; 
     } 
     else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { 
      intH = document.documentElement.clientHeight; 
      intW = document.documentElement.clientWidth; 
     } 
     else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { 
      intH = document.body.clientHeight; 
      intW = document.body.clientWidth; 
     } 

     return { width: parseInt(intW), height: parseInt(intH) }; 
    } 

感謝。

+0

?????????????????????????????????? –

回答

0

相關引起的解決在Chrome 44錯誤this bug in fullpage.js

解決方案呢?

使用fullpage.js選項css:false或我會推薦的內容:scrollBar:true

希望Chrome將盡快修復它的錯誤,你將不必擔心。

相關問題