我似乎无法找到正确的标签。当屏幕在某些地方在iPad上滑动时,整个屏幕会移动,带着“橡皮筋”效果,我知道有一种方法可以锁定屏幕,特定于HTML5和webkit。HTML 5固定屏幕iPad
使用<iframe src="" width="1024" height="724" scrolling="no"></iframe>
似乎是一个便宜的修复,这些都是我的头。
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black" />
我想可能会有一个新的webkit或html5 meta标签来做到这一点。会试试这个。 –
不明白是什么事件,我不认为这是一个保留字。你是否通过
–“preventDefault”取消了事件(标准JS技巧)上完成的默认动作。我简化了一下解决方案。有关相关问题,请参阅http://stackoverflow.com/questions/500761/stop-uiwebview-from-bouncing-vertically。 –