Cordova   发布时间:2022-05-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了如何删除离子cordova上iPhone X顶部视口角落的空白区域大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

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

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

我错过了什么?

ionic (Ionic CLI)     : 3.15.2
cordova (Cordova CLI) : 7.1.0
Cordova Platforms     : ios 4.5.2
Ionic 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顶部视口角落的空白区域所遇到的程序开发问题。

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

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。