【问题标题】:full background one page first div intro全背景 一页第一 div 介绍
【发布时间】: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


【解决方案1】:

此 CSS 代码不适用于 iPhone。 当你想要完整的背景时,你必须使用这个 Jquery 库 -> http://srobbin.com/jquery-plugins/backstretch/

【讨论】:

    猜你喜欢
    • 2023-03-07
    • 2011-05-23
    • 1970-01-01
    • 1970-01-01
    • 2021-10-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多