【发布时间】:2013-12-23 16:36:56
【问题描述】:
我有一个错误,我有一个单页网站,其中包含内容和背景图片的介绍 div。 一切正常,只是在 iPhone 上不行。
iphone 上的图片是完全放大的,但在 android 上它可以正常工作。 这是介绍 div 的 css 代码:
#intro{
background: url('../images/index_pic.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
overflow: hidden;
width:100%;
height:100%;
z-index: 1;
}
我从这个网站获取它:http://css-tricks.com/perfect-full-page-background-image/
我该如何解决这个问题?
【问题讨论】:
-
完全放大是什么意思?有截图的机会吗?
标签: ios css background responsive-design parallax