为什么竞争不能在离子中显示(隐藏在标题下方)(离子竞争不能正常工作)

why contend not display (hide below header )in ionic (ion-contend not work properly )

本文关键字:竞争 不能 工作 常工作 隐藏 显示 为什么 标题      更新时间:2023-09-26

我正在尝试在ion中制作简单的第一个应用程序。我可以制作页脚和页眉。但当我在ion-content标记中添加了竞争时,我的竞争不会显示。当我检查它在页眉下面时,为什么?它应该在标题下面。我将如何实现在标题下面显示离子竞争?

如何在离子视图中添加背景图像?这是我的代码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>

更改

 <ion-content>

通过(添加类):

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