ionic 3 - 键盘将整个屏幕向上推 [英] ionic 3 -Keyboard pushes the whole screen up

查看:32
本文介绍了ionic 3 - 键盘将整个屏幕向上推的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我构建了 ionic 3 应用程序.我有输入字段,当我按下它们开始输入屏幕更改的任何内容时..

I build ionic 3 app. I have inputs field and when I press on them to begin to type anything the screen changed..

之前

当我按下任何输入字段时,屏幕发生了变化(它也在真实设备中进行测试)

when I press on any input field the screen changed(it's test also in real device)

推荐答案

你可以通过将这个样式添加到 app.scss 来解决这个问题:

You can fix this problem by adding this style to app.scss:

    ion-grid {
      min-height: 100%;
     }

如果你没有定义它的最小高度,键盘会调整 Ionic 的网格系统的大小.

The keyboard resizes Ionic's grid system if you didn't define its minimum height.

这篇关于ionic 3 - 键盘将整个屏幕向上推的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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