我试图在离子中进行简单的第一次应用。我能够制作页脚和标题。但是当我在 ion-contend 标签中添加竞争时,我的竞争不会显示。当我检查它时标题下面为什么?它应该低于标题。我将如何在标题下显示离子竞争?
如何在离子视图中添加背景图像? 这是我的代码 http://codepen.io/anon/pen/pvYdNM
<ion-view>
<ion-header-bar class=" bar bar-positive">
<h1 class="title">Title!</h1>
</ion-header-bar>
<ion-content>
<h1>contend</h1>
</ion-content>
<ion-footer-bar class=" bar bar-footer bar-positive">
<h1 class="title">Fotter!</h1>
</ion-footer-bar>
</ion-view>
答案 0 :(得分:1)
更改
<ion-content>
by(add class):
<ion-content class="has-header">