我使用 Ionic 3。 我的导航栏消失了。我想看看我的导航栏。 如何移除全屏模式?
import { InAppBrowser, InAppBrowserOptions } from '@ionic-native/in-app-browser';
import { Component } from '@angular/core';
import { NavController, Platform } from 'ionic-angular';
declare var navigator: any;
declare var Connection: any;
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
Connection: any;
isLaunch: Boolean = false;
constructor( private platform: Platform, private iab: InAppBrowser) {
this.platform.ready().then(() => {
this.launch();
});
}
launch() {
this.isLaunch = true;
const browser = this.iab.create('https://twitter.com/','_self' , "location=yes");
browser.show();
}
}
<iframe width="100%" height="100%" frameborder="0"></iframe>
提前谢谢你。
最佳答案
应用内浏览器打开时,无法保留导航栏。可能有帮助的一件事是使用主题浏览器,您可以在顶部使用按钮和菜单:
关于javascript - 如何移除全屏模式? (在应用浏览器中),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51031536/