在 Ionic 登录页面中,每次隐藏键盘后会导致屏幕完全变成空白(元素仍然存在,可以点击和响应),但在编辑输入内容后一切都会恢复正常。(仅在 iOS 上有此问题,Android 没有问题,其他页面的输入也没有问题,因此不应该是键盘插件的问题)。
<ion-content>
替换为<ion-scroll>
。
<ion-scroll direction="y" style="right: 0;bottom: 0;left: 0;position: absolute;" class="has-header has-subheader">
键盘问题。你需要在ion-content中添加这两个属性:padding="true"和overflow-scroll="false"
<ion-content padding="true" overflow-scroll="false">
</ion-content>
这对我有用。