Android操作系统键盘的动作网站内容最多? [英] Android OS Keyboard moves Website Contents Up?

查看:135
本文介绍了Android操作系统键盘的动作网站内容最多?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个移动网站与绝对定位在100%的高度DIV中,当我点击地址栏的高度上缩小分区和推动一切了4个元素。

I have a mobile website with 4 elements that are absolutely positioned inside a 100% height div and when I click on the url bar the height on the div shrinks and pushes everything up.

反正是有解决这个问题?从改变100%或prevent呢?还是需要使用JS来获取屏幕尺寸和修复它呀?由于它工作正常,如果我将它设置为一个确切的金额。

Is there anyway to fix this issue? Or prevent it from changing the 100%? Or do I need to get the screen size using JS and fix it that way? As it works fine if I set it to an exact amount.

推荐答案

Android浏览器调整大小的键盘时,打开窗户,有没有解决方案,以prevent这一点。

The android browser resizes the window when the keyboard is opened, there is no solution to prevent that.

这篇关于Android操作系统键盘的动作网站内容最多?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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