为什么我的内容隐藏在Ionic 1的标题后面?

时间:2017-05-22 10:12:28

标签: angularjs ionic-framework uiview header

我是角色的新手,我一直试图找出导致内容隐藏在标题后面的原因。

以下是代码:

<div class="bar bar-header bar-positive">
    <h1 class="title">Cleaners</h1>
</div>

<ion-content ui-view>
</ion-content>

<div class="bar bar-footer bar-balanced"></div>

我不想使用bootstrap,我使用的是实际的Ionic组件。

1 个答案:

答案 0 :(得分:1)

将班级class="has-header"分配给<ion-content>代码

<ion-content class="has-header">
    ....
</ion-content>

它应该可以正常工作。

相关问题