【发布时间】:2019-02-06 23:44:20
【问题描述】:
为什么我的 statusBar 在 ion-nav 上结束了?
我的home.html是这样的
<ion-header>
<ion-navbar color="royal">
<button ion-button icon-only menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>
Empreendimentos
</ion-title>
</ion-navbar>
而app.components.ts是这样的
import { StatusBar } from '@ionic-native/status-bar';
initializeApp() {
this.platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
this.statusBar.overlaysWebView(true);
this.statusBar.backgroundColorByHexString('#4a148c');
this.splashScreen.hide();
});
}
这是我应用上的状态栏
【问题讨论】:
标签: javascript css typescript ionic3