iPhone position: fixed (Header/Footer/Toolbar)

Geht nicht? Doch! Und zum Glueck gibt’s dafuer sogar ein fix und fertiges Script:

http://cubiq.org/iscroll

Wer nicht so recht weiss, um was es hier geht: Im Mobile Safari, der unter anderem auf dem iPhone laeuft, ist es aufgrund des Viewports nicht moeglich, die CSS-Eigenschaft “position: fixed” zu nutzen. Dadurch kann man z.B. wie in vielen Webapps gewuenscht keinen Toolbar-Footer einfuegen, der immer unter dem Inhalt stehen bleibt und nicht mitscrollt.

Quelle: http://doctyper.com/archives/200808/fixed-positioning-on-mobile-safari/

COMMENTS / 2 COMMENTS

iOS 5 wird es wohl unterstützten:
http://www.youtube.com/watch?v=JFzv3ETwfms

G Warth added these pithy words on Sep 13 11 at 10:13

Sehr gut! Trotzdem wird es vmtl. eine ganze Weile noch Geraete mit aelteren Versionen geben, fuer die man den Workaround braucht.

pb added these pithy words on Sep 13 11 at 10:14

XHTML: Du kannst folgende Tags nutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>