使用键盘html时,ios7会发生webview焦点问题 [英] ios7 issues with webview focus when using keyboard html

查看:141
本文介绍了使用键盘html时,ios7会发生webview焦点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

senchaI有一个具有注册表单的webapp,使用safari一切正常,但是由于某些原因,当将页面添加到主屏幕(使用ios webview)时,会出现问题。
当我们点击输入字段时,键盘没有缩放到被选择的特定字段,为了开始写入文本字段,我需要再次按下文本字段。
我正在使用sencha。

senchaI have a webapp with a registration form, Using the safari everything is working , But for some reason when adding the page to home screen(using ios webview) the issue appear . When we click on the input field the keyboard is not zooming to the specific field who was selected and in order to start writing to text field i need to press again on the text field . I am using sencha.

推荐答案

我找到了iOS 7的解决方案。在HTML中使用以下元标记页面:

I found the solution for iOS 7. Use the following meta tag in your HTML pages:

<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, target-densityDpi=device-dpi" />

这篇关于使用键盘html时,ios7会发生webview焦点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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