ionic由于使用了header和subheader导致被遮挡的问题的两种解决方法
这是一个小bug,解决方法有两种:根据做的东西不同选择不同的
<ion-nav-barclass="bar-positive"> <ion-nav-back-buttonclass="button-iconion-arrow-left-c"> </ion-nav-back-button> <h2>helloafds</h2> </ion-nav-bar> <ion-header-barclass="bar-subheader"> <h1>hello</h1> </ion-header-bar>
上面一种是使用比如有后退,导航的,下面是真正的一个header,一个subheader
<ion-header-baralign-title="left"class="bar-positive"> <divclass="buttons"> <buttonclass="button"ng-click="doSomething()">LeftButton</button> </div> <h1class="title">Header</h1> <divclass="buttons"> <buttonclass="button">RightButton</button> </div> </ion-header-bar> <ion-header-baralign-title="left"class="bar-subheaderbar-positive"> <h1class="title">SubHeader!</h1> </ion-header-bar>
其他的说在content上加has-header="true"和has-subheader="true"是不行的。
以上所述是小编给大家介绍的ionic由于使用了header和subheader导致被遮挡的问题的两种解决方法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对毛票票网站的支持!
热门推荐
10 财运虎年祝福语简短语
11 单亲爸爸春节祝福语简短
12 狗狗上厕所训练
13 植物种植祝福语简短
14 翻译考试祝福语朋友简短
15 个人周年庆简短祝福语
16 狗狗怎么训练
17 分别祝福语简短搞笑英文
18 生日广州男生祝福语简短