【发布时间】:2015-05-06 15:47:22
【问题描述】:
我写这个问题是因为其他非常相似的答案没有帮助:
- Show a website inside an ionic tab
- How to make a container fill whole screen below the navigation bar in Ionic?
所以,问题是,我在 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