2016-09-29 97 views
1

我有几个div背景图像,但没有任何显示在任何iOS设备(iphone + ipad)。它适用于其他地方。背景图像不显示在IOS设备

我已经将照片的大小降低为635 x 635.我不确定这是图像还是与CSS的问题。不幸的是我不能发布链接到实际的图像。但这里是我有的代码示例:

图像的URL由Thumbor生成。

.section { 
 
    position: relative; 
 
    width: 100%; 
 
    min-height: 100%; 
 
    padding-left: 10%; 
 
    display: block; 
 
    -webkit-background-size: cover; 
 
    -moz-background-size: cover; 
 
    -o-background-size: cover; 
 
    background-size: cover; 
 
    padding-top: auto; 
 
    padding-left: 0% !important; 
 
} 
 
.caption { 
 
    margin: 5%; 
 
}
<section class="section" id="image_text3" style="background: url(//placehold.it/635/635) no-repeat fixed top;"> 
 
    <div class="caption"> 
 
    <p>caption</p> 
 
    </div> 
 
</section>

+0

text3之间没有空格“style =你应该有text3”style = – mlegg

+0

好的,谢谢。不幸的是,这种方法并没有解决这个问题。 – auto

回答