I am trying to make simple app single page app .Actually I take background image which is placed on it display when I used <ion-content class="bg" style="position:absolute!important">
position:absolute but it display in small area .I need to display on whole contend .In other words in whole contend tag complete screen. here is my code
<html ng-app="ionicApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Ionic List Directive</title>
<link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet">
<script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>
</head>
<body >
<ion-view>
<ion-header-bar class=" bar bar-positive ">
<h1 class="title">Title!</h1>
</ion-header-bar>
<ion-content class="bg" style="position:absolute!important">
<h1 >contend</h1>
</ion-content>
<ion-footer-bar class=" bar bar-footer bar-positive" style="position:fixed!important">
<h1 class="title">Fotter!</h1>
</ion-footer-bar>
</ion-view>
</body>
</html>
Aucun commentaire:
Enregistrer un commentaire