简体   繁体   中英

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 screen. 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) ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM