iPhone - customizing WebKit
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 ?
- You can scroll with 2 fingers.
- If you don't want to scroll with 2 fingers, try http://cubiq.org/scrolling-div-for-mobile-webkit-turns-3/16.
- 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.
精彩评论