iphone-web-app

Remove form assistant from keyboard in iPhone standalone web app

China☆狼群 提交于 2019-11-26 19:56:20
问题 Is it possible to remove the form assistant from the iPhone popup keyboard in a standalone web app? I know the general consensus is that it's not possible in Mobile Safari, but a standalone app runs in a UIWebView , and functions differently in several ways (example), so I'm hoping this might be possible. You can see it here right above the keyboard: The Previous and Next buttons cycle between <form> inputs. But I have a single <input> element, so they are disabled. The Done button hides the

Can I trigger a CSS event in mobile safari upon iphone orientation change?

喜欢而已 提交于 2019-11-26 16:50:00
问题 I'm trying to figure out how to change an embedded web page when the user rotates their phone from portrait to landscape mode - basically to load a view that is better suited to the wider screen format. Is this possible to do without calling a new page from the server, i.e. to drive it from within CSS/Javascript itself? Thanks! 回答1: You can use the window.orientation property. Its value is the degree that the current mode of view is used. Here is a brief example: function updateOrientation()