2016-02-14 64 views

回答

1

我用<ion-header-bar><ion-content>has-header類和我解決。

因爲您聲明瞭<body ng-app="Hungroo">所以需要定義這些模塊。

它遵循一個完整的例子:

angular.module('Hungroo', ['ionic']);
<html> 
 

 
<head> 
 
    <meta charset="utf-8"> 
 
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> 
 
    <link href="http://code.ionicframework.com/nightly/css/ionic.min.css" rel="stylesheet"> 
 
    <script src="http://code.ionicframework.com/nightly/js/ionic.bundle.min.js"></script> 
 
</head> 
 

 
<body ng-app="Hungroo"> 
 
    <ion-header-bar class="bar bar-header bar-royal"> 
 
    <button class="button button-icon icon ion-navicon"></button> 
 
    <div class="h1 title">title</div> 
 
    <button class="button button-icon icon ion-settings"></button> 
 
    </ion-header-bar> 
 
    <ion-content class="has-header"> 
 
    <div class="padding"> 
 
     <div class="list"> 
 
     <label class="item item-input item-select"> 
 
      <div class="input-label"> 
 
      First Things First! 
 
      </div> 
 
      <select> 
 
      <option>one</option> 
 
      <option>two</option> 
 
      <option>three</option> 
 
      <option>four</option> 
 
      </select> 
 
     </label> 
 
     </div> 
 
    </div> 
 
    </ion-content> 
 
</body> 
 

 
</html>

相關問題