内容在离子应用程序中重叠

时间:2015-12-24 19:49:57

标签: javascript ionic-framework ionic hybrid-mobile-app

我正在尝试使用标题,标签和列表创建应用。但内容不在适当的地方。我尝试了多种选择,但迄今为止没有任何工作。

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <title></title>

    <link href="lib/ionic/css/ionic.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

    <!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
    <link href="css/ionic.app.css" rel="stylesheet">
    -->

    <!-- ionic/angularjs js -->
    <script src="lib/ionic/js/ionic.bundle.js"></script>

    <!-- cordova script (this will be a 404 during development) -->
    <script src="cordova.js"></script>

    <!-- your app's js -->
    <script src="js/app.js"></script>

  </head>
  <body ng-app="starter">

    <ion-pane>
      <ion-header-bar class="bar-stable center">
        <div class="buttons">
          <button class="button button-clear icon ion-home"></button>
        </div>
        <h1 class="title">Test App</h1>
        <div class="buttons">
          <button class="button button-clear icon ion-calendar"></button>
        </div>
      </ion-header-bar>
      <ion-content class="has-header">
        <div class="tabs-striped tabs-top tabs-background-positive tabs-color-light">
          <div class="tabs">
            <a class="tab-item active" href="#">
              Test
            </a>
            <a class="tab-item" href="#">
              Favorites
            </a>
            <a class="tab-item" href="#">
              Settings
            </a>
          </div>
        </div>
        <div class="has-tabs">
        <ion-list>
          <ion-checkbox ng-model="filter.blue">Red</ion-checkbox>
          <ion-checkbox ng-model="filter.yellow">Yellow</ion-checkbox>
          <ion-checkbox ng-model="filter.pink">Pink</ion-checkbox>
        </ion-list>
        </div>
      </ion-content>
    </ion-pane>
  </body>
</html>

以下是输出Output的屏幕截图。请尽可能帮忙。

1 个答案:

答案 0 :(得分:1)

试试这段代码:

<ion-list class="list has-header">

也改变了:

www.mysite.com/index.php
希望这对你有所帮助..!