固定的背景在iPhone上工作不起作用

时间:2016-01-18 21:04:25

标签: html ios css iphone

我有一个使用固定背景作为背景的网站。它在桌面和Android中正常工作,但iphone似乎不接受固定背景作为静态背景和页面滚动。网站链接是www.ofevape.com在iphone中查看。我试过了!在背景上很重要,似乎没有任何改变。它似乎没有回应固定的背景和封面。

我使用以下代码作为我的背景。

body {
    font-family: 'open_sansregular';
    font-size: 1em;
    margin: 0;
    padding: 0;
    background: url(images/bg-wood-light.jpg);
    //background-image: url(images/bg1.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: top;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
height: 100%;
width: 100%;
background-position: center center;
background-repeat: no-repeat;
}

0 个答案:

没有答案
相关问题