【问题标题】:Ionic's navigation bar obstructs iframeIonic 的导航栏阻碍 iframe
【发布时间】:2015-05-06 15:47:22
【问题描述】:

我写这个问题是因为其他非常相似的答案没有帮助:

所以,问题是,我在 Ionic 应用程序中有一个页面,该页面只有导航栏和 iframe,但是当您将其导出到设备时,导航栏会在 iframe 前面占用空间,这不是使用 ionic serve --lab 运行应用时不会发生这种情况。

我该如何解决这个问题?

代码是这样的:

<ion-view view-title="Detalles de mensaje" class="detallesWV-page">
  <ion-nav-buttons side="right">
    <button class="button button-icon icon ion-navicon-round" ng-click="openPopover($event)">
    </button>
  </ion-nav-buttons>

  <ion-content scroll="false">
    <div id="contenido" style="top:10px;">
      <iframe width="100%" height="100%" frameborder="0" src="http://cnn.com"></iframe>
    </div>
  </ion-content>
</ion-view>

【问题讨论】:

    标签: android cordova iframe ionic-framework


    【解决方案1】:

    尝试在 ion-content 上添加 class="has-header"

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-05-06
    • 1970-01-01
    • 1970-01-01
    • 2016-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多