ios7 issues with webview focus when using keyboard html

后端 未结 2 1605
情歌与酒
情歌与酒 2020-12-13 16:48

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 issu

相关标签:
2条回答
  • 2020-12-13 16:52

    I faced the same issue. In my case i am using jquery mobile and to solve this issue i added the attribute "autofocus" to the input field.
    This seems to simulate a first tap on the field whereas the tap by the user opens the keyboard and he will be able to write to the field.
    Hope this helps.

    0 讨论(0)
  • 2020-12-13 16:54

    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" />
    
    0 讨论(0)
提交回复
热议问题