javascript - ionic 应用程序中的内容重叠

标签 javascript ionic-framework 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 。如果可能的话请帮忙。

最佳答案

试试这个代码:

<div class="tabs-top  tabs-background-positive tabs-color-light">
<div class="tabs "style="top:0px;">

同时更改:

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

希望这对你有帮助......!

关于javascript - ionic 应用程序中的内容重叠,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34457311/

相关文章:

javascript - 在页面加载时以 ionic 显示动态添加的字段

javascript - 如何将对象键转换为嵌套对象

javascript - 编码 JSON 并存储在 MYSQL 中的正确方法?

javascript - Cytoscape Js cose 布局为所有 Node 提供 0

css - ionic 图标周围的阴影/轮廓

javascript - ionic 闪屏延迟不起作用

javascript - 如何在 Ionic popover 中编写函数?

javascript - 对象方法的不一致行为 'hasOwnProperty'

javascript - 我可以在 mdDialog 中添加变量或函数吗?

css - 如何让 Cordova 应用程序的 Tabbar 很好地适应各种手机屏幕尺寸?