我想获得背景大小:封面;在iOS设备上工作,但根本没有运气。有没有人有这样的运气?
我使用背景附件为iPhone关闭了:滚动;但希望它使用较大尺寸的固定附件属性。这可能吗?
该网站正在http://thomas-rogers.co.uk/sectionCover/index.html
上线我目前使用的CSS是:
section {
background-position: center center;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-attachment: fixed;
position: relative;
-ms-behavior: url(backgroundsize.min.htc);
}
@media only screen and (max-width : 480px) {
section {
background-attachment: scroll;
}
}
section.full {
height: 100%;
}
#headerImage {
background-image: url(../images/tkgHeaderImage.jpg);
}
#headerImage2 {
background-image: url(../images/tkgMapImage1.jpg);
}
#headerImage3 {
background-image: url(../images/tkgMapImage2.jpg);
}
#headerImage4 {
background-image: url(../images/tkgMapImage3.jpg);
}
#headerImage5 {
background-image: url(../images/tkgMapImage4.jpg);
}
#headerImage6 {
background-image: url(../images/tkgMapImage5.jpg);
}
#headerImage7 {
background-image: url(../images/tkgMapImage6.jpg);
}
提前感谢您的帮助!
汤姆。