I create phone applications based on ionic structure. On one html page, I need one header and one content. But the title overlaps with the content. I'm sorry that I do not have enough reputation to post the image.
The following code. The html page is located in the same folder with the lib folder, which contains ionic css and js folders.
<html> <head> <meta charset="utf-8"> <title>Weather</title> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <link rel="stylesheet" href="lib/css/ionic.css"> <script src="lib/js/ionic.bundle.js"></script> <script src="lib/js/angular/angular-resource.js"></script> </head> <body> <ion-header-bar class="bar bar-header bar-dark"> <h1 class="title">Settings</h1> <button class="button button-clear" ng-click="closeSettings()">Close</button> </ion-header-bar> <ion-content has-header="true"> <div class="padding"> <div class="list"> <label class="item item-input"> <span class="input-label">Units</span> <ion-radio-buttons ng-model="settings.tempUnits"> <button class="button button-positive button-radio" ng-value="'f'">°F</button> <button class="button button-positive button-radio" ng-value="'c'">°C</button> </ion-radio-buttons> </label> </div> </div> </ion-content>
javascript html css cordova ionic-framework
BAE Aug 20 '14 at 15:07 2014-08-20 15:07
source share