开发者

iPhone - customizing WebKit

开发者 https://www.devze.com 2022-12-27 00:49 出处:网络
Apple has disabled the overflow CSS aspect in mobile Safari so it is not possible to scroll inside a fixed height div. This is quite annoying.

Apple has disabled the overflow CSS aspect in mobile Safari so it is not possible to scroll inside a fixed height div. This is quite annoying.

While making an iPhone native app, is it pos开发者_运维技巧sible to access WebKit settings to turn that feature on ?


  1. You can scroll with 2 fingers.
  2. If you don't want to scroll with 2 fingers, try http://cubiq.org/scrolling-div-for-mobile-webkit-turns-3/16.
  3. WebKit is a private framework, so you can't do anything even if you develop a native app (for AppStore).


Nope. Sorry - you'll have to use js to position things.

It's disabled because you aren't "scrolling", you are moving the viewport, so position-fixed doesn't make sense.

0

精彩评论

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