如何删除全屏模式? (InAppBrowser) [英] How to remove the Full Screen mode? (InAppBrowser)

查看:1116
本文介绍了如何删除全屏模式? (InAppBrowser)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Ionic 3.
我的导航栏已经消失。我想看看我的导航栏。
如何删除全屏模式?

I use Ionic 3. My navigation bars have disappeared. I would like to see my navigation bars. How to remove the Full Screen mode?

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>
  

提前谢谢。

推荐答案

在应用内浏览器打开时,无法保留导航栏。可能有用的一件事是使用主题浏览器,您可以在其中使用按钮和菜单位于顶部:

It's not possible to keep your navigation bar when in-app browser opens. One thing that might help would be to use themeable-browser, with which you can have buttons and a menu on the top:

https://ionicframework.com/docs/native/themeable-browser/

这篇关于如何删除全屏模式? (InAppBrowser)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆