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

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

问题描述

Sencha - 我有一个带有注册表的 web 应用程序,可以在 Safari 上正常运行.但是,由于某种原因,将页面添加到主屏幕(使用 ios webview)时会出现此问题:

Sencha - I have a webapp with a registration form that works correctly on Safari. However, for some reason when adding the page to home screen (using ios webview) this issue appears:

当我单击文本字段时,键盘不会缩放到选定的特定字段.为了开始写入该文本字段,我需要再次按下该文本字段.

When I click on a text field the keyboard is not zooming to the specific field that was selected. In order to start writing to that text field, I need to press again on the text field.

我正在使用煎茶.

推荐答案

我找到了适用于 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" />

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

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