2015-11-07 33 views
0

我知道有些人已經問過這個。我已經嘗試了這些答案,但現在沒有運氣。Phonegap與角JS納克查看不能全屏幕

這是我index.html一些重要的部分:

<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> 
<body> 
    <div ng-view>  
     <!--MY CONTENT HERE--> 
    </div> 

    <script type="text/javascript" src="cordova.js"></script> 

    <script type="text/javascript"> 
     app.initialize(); 
    </script> 
</body> 

我裝我的內容<div ng-view>。它裝載成功,但高度不滿。高度取決於內容。

這是我的加載內容摘要:

<div class="parent"> 
    <div class="topcoat-list__container scroller"> 
     <ul class="topcoat-list list"> 
      <li class="topcoat-list__item"> 
      </li>  
     </ul> 
    </div> 
</div> 

這是我的CSS:

html, body, .parent { height: 100vh; width: 100%; margin: 0; /*position:absolute;*/} 

我曾嘗試與height:100%position:absolute;沒有運氣可言。 我在我裝入的內容中使用了topcoat庫,但我認爲它應該沒有問題。

請幫助我。非常感謝你的幫助。

+0

爲什麼不嘗試[離子](http://ionicframework.com) - 這是非常多的電話差距角度 –

+0

Err。 ..對於混合動力車的發展,我很新鮮。所以如果我使用Ionic,我不必使用Phonegap?或者它只是一個CSS + JS? –

+0

它說我們將需要支付後,他們要測試? –

回答

0

Im sorry guys,my CSS path is wrong。看來我需要休息LOL 無論如何,我的問題中的代碼是工作:)