固定在iPhone Safari上的背景 [英] Fixed background on iPhone Safari

查看:126
本文介绍了固定在iPhone Safari上的背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iPhone Safari似乎有某种问题,其中一个css的页面如下:

iPhone Safari seems to have some sort of problem whereby a page with css like this:

body {
   background: #000 url(fixedimage.png) fixed repeat-x;
}

...实际上并不会导致固定的图片。

...doesn't actually lead to a fixed image. It scrolls as the user scrolls.

我已经看到很多人在互联网上关注这个问题,但没有真正的解决方案。有人有任何想法吗?

I've seen plenty of people kvetching about this on the internets, but no real solution. Does anyone have any ideas?

推荐答案

我看过这个网站。但还没有尝试过。看起来很复杂。
http://doctyper.com/archives/200808 / fixed-positioning-on-mobile-safari /

I've seen this site. But have not tried it out yet. look pretty complex. http://doctyper.com/archives/200808/fixed-positioning-on-mobile-safari/

这篇关于固定在iPhone Safari上的背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆