Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

移动端输入框获取焦点弹出软键盘时,安卓系统会强制页面布局上移,目前有什么解决方法吗 #118

Open
albb58 opened this issue Aug 3, 2020 · 4 comments
Assignees

Comments

@albb58
Copy link

albb58 commented Aug 3, 2020

问题是什么

问题的具体描述,尽量详细

环境

  • 手机: 小米6
  • 系统:安卓7.1.1
  • 浏览器:chrome 61
  • zepto版本:1.1
  • zepto.fullpage版本:v0.5.0

在线例子

如果有请提供在线例子

其他

其他信息

@yanhaijing
Copy link
Owner

如果能贴个demo url,就棒棒的,我好看看效果😄

@yanhaijing yanhaijing self-assigned this Aug 3, 2020
@yanhaijing
Copy link
Owner

是不是可以设置一个最小高度?

@ixqbar
Copy link

ixqbar commented Aug 3, 2020

失去焦点时强制页面滚动到top

window.scrollTo({top:0})

@albb58
Copy link
Author

albb58 commented Aug 3, 2020

暂时解决了,给.wp加了一个获取屏幕高度

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants