开发者

iPad webApps on screen keyboard

I have an HTML web-app which runs in a viewport. The web-app does not scroll. It is all contained within one s开发者_JAVA技巧creen. I added a text-field into my app. When I press the input field the on-screen keyboard pops up. 1. The keyboard pushes the web-app upwards for some reason (The view-port defines a resolution which should not allow scrolling). 2. When I am done the app stays "scrolled" off-screen.

Is there a way to fix this? Is there a way to control the keyboard using Javascript/CSS?


Crude, but can you handle the blur event on the form field then call window.scrollTo(0,0)?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜