我似乎無法找到正確的標籤。當屏幕在某些地方在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。 –