小米手机上!微信中,输入弹出键盘把页面顶变形了!_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:37:00
Original
2695 people have browsed it

页面是用html画的,最开始在所有的andriod系统上都有输入法弹出页面被顶变形的问题!后来我在css样式中经行了判断,当页面高度小于500px时,页面的高度变为定值。可是只有小米的手机和三星A8不好使,不知道为什么?希望有大神给出解决方案!要改动小,项目马上要上线!


回复讨论(解决方案)

改相对定位。。。

我改的方法好使!小米的手机好像是有缓存的,重启一下后就好使了。改成相对定位好像不行,键盘弹出的时候,是把整个屏幕变成一半大,相对定位后还是会移动

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!