这里是我的CSS类背景图片(居中)在iPhone
.parallax {
background: url(../images/indexParallax.png) no-repeat center center fixed;
display: table;
height: 100%;
position: relative;
width: 100%;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
overflow: hidden;
}
在台式电脑和Android手机,正确显示该视差。但是当涉及到iPhone(4和5和6)时,就会出现问题。图像显示但没有正确缩放背景图像。
任何想法?谢谢。
我相信'背景附件:fixed'不会在iOS – zgood