ion-header-bar作用是在内容上加一个固定的头部栏,也可以加一个子头部栏,只要在Class里面加’bar-subheade'
用法:
相关属性
align-title 可选属性为 ‘left’, ‘right’, or ‘center’.
no-tap-scroll 可选属性为 true ,false
ion-footer-bar 例子
用法:
<ion-header-bar align-title="left" class="bar-positive">
<div class="buttons">
<button class="button" ng-click="doSomething()">Left Button</button>
</div>
<h1 class="title">Title!</h1>
<div class="buttons">
<button class="button">Right Button</button>
</div>
</ion-header-bar>
<ion-content>
Some content!
</ion-content>
相关属性
align-title 可选属性为 ‘left’, ‘right’, or ‘center’.
no-tap-scroll 可选属性为 true ,false
ion-footer-bar 例子
<ion-content>
Some content!
</ion-content>
<ion-footer-bar align-title="left" class="bar-assertive">
<div class="buttons">
<button class="button">Left Button</button>
</div>
<h1 class="title">Title!</h1>
<div class="buttons" ng-click="doSomething()">
<button class="button">Right Button</button>
</div>
</ion-footer-bar>