在移动Safari中的固定定位 [英] Fixed positioning in Mobile Safari
本文介绍了在移动Safari中的固定定位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在Mobile Safari中定位相对于视口固定的元素?正如许多人指出的, position:fixed
不起作用,但Gmail刚刚发布了一个几乎是我想要的解决方案–请参阅消息视图上的浮动菜单栏。
Is it possible to position an element fixed relative to the viewport in Mobile Safari? As many have noted, position: fixed
doesn't work, but Gmail just came out with a solution that almost is what I want – see the floating menu bar on the message view.
在JavaScript中获取实时滚动事件也是一个合理的解决方案。
Getting real-time scroll events in JavaScript would also be a reasonable solution.
推荐答案
iOS 5具有支持位置:固定。
这篇关于在移动Safari中的固定定位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文