如何删除离子cordova上iPhone X顶部视口角落的空白区域

如何删除离子cordova上iPhone X顶部视口角落的空白区域,第1张

概述参见英文答案 > Ionic – White edge on iPhone X in header                                    1个 我按照 Understanding the WebView Viewport in iOS 11和 Cordova app not displaying correctly on iPhone X (Simulator)中的 参见英文答案 > Ionic – White edge on iPhone X in header                                    1个
我按照 Understanding the WebView Viewport in iOS 11和 Cordova app not displaying correctly on iPhone X (Simulator)中的说明设置视口适合覆盖等.但我仍然无法摆脱顶部的这些白色角落:

我错过了什么?

ionic (Ionic Cli)     : 3.15.2cordova (Cordova Cli) : 7.1.0Cordova Platforms     : ios 4.5.2Ionic Framework       : ionic-angular 3.8.0
解决方法 最终我自己弄明白了.如果其他人有同样的问题,这就是我的诀窍:

离子cordova插件rm cordova-plugin-statusbar

离子cordova插件添加https://github.com/apache/cordova-plugin-statusbar.git

参见:https://github.com/apache/cordova-plugin-statusbar/pull/85

总结

以上是内存溢出为你收集整理的如何删除离子cordova上iPhone X顶部视口角落的空白区域全部内容,希望文章能够帮你解决如何删除离子cordova上iPhone X顶部视口角落的空白区域所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1000732.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存