开发者

Fixed position on a mobile browser

Hi i have an issue, i want to a bar that stays at t开发者_如何学运维he bottom of the page i have it working on a real web browser with the following code.

bottom:0;
position:fixed;

It works well on the web, but when it gets to mobile, it doesn't do same. What do i do. Thank you.


If you're talking about Mobile Safari (on iPhone/iPad/etc), it has an unusual definition of what is the "viewport" and therefore how "fixed" works. You have to use a workaround. See this blog post (and the links contained therein) for details.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜