离子应用程序中的内容重叠
Contents are overlapping in ionic 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>
这是输出的屏幕截图。如果可能请帮忙。
试试这个代码:
<div class="tabs-top tabs-background-positive tabs-color-light">
<div class="tabs "style="top:0px;">
还有变化:
<ion-list class="list has-header">
希望这对你有帮助..!
我正在尝试创建带有页眉、选项卡和列表的应用程序。但内容不在适当的位置。我尝试了多种选择,但到目前为止没有任何效果。
<!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>
这是输出的屏幕截图
试试这个代码:
<div class="tabs-top tabs-background-positive tabs-color-light">
<div class="tabs "style="top:0px;">
还有变化:
<ion-list class="list has-header">
希望这对你有帮助..!