这是一个小bug,解决方法有两种:根据做的东西不同选择不同的
<ion-nav-bar class="bar-positive">
<ion-nav-back-button class="button-icon ion-arrow-left-c">
</ion-nav-back-button>
<h2>helloafds</h2>
</ion-nav-bar>
<ion-header-bar class="bar-subheader">
<h1>hello</h1>
</ion-header-bar>上面一种是使用比如有后退,导航的,下面是真正的一个header,一个subheader
<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">Header</h1>
<div class="buttons">
<button class="button">Right Button</button>
</div>
</ion-header-bar>
<ion-header-bar align-title="left" class="bar-subheader bar-positive">
<h1 class="title">Sub Header!</h1>
</ion-header-bar>其他的说在content上加has-header="true"和has-subheader="true"是不行的。
本文介绍了解决Ionic框架中导航栏显示问题的方法,包括如何正确设置带有返回按钮的导航栏及子标题栏,并提供了HTML代码示例。
3595

被折叠的 条评论
为什么被折叠?



