你知道为什么吗,在 my website全屏背景在 iPad 上不起作用?非常感谢
我试过这个:
#presentation {
height: 1300px;
background: #afc9ff;
background: url(../images/bg-24.jpg) no-repeat center fixed;
-webkit-background-size: 100%;
-moz-background-size: 100%;
-o-background-size: 100%;
background-size: 100%;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
还有这个
#activity {
height: 1300px;
background: #8aba56;
padding-top: 150px;
background: url(../images/bg-22.jpg) no-repeat center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-ms-background-size: cover;
-o-background-size: cover;
}
最佳答案
请试试这个:
#activity {
height: 1300px;
background: #8aba56;
padding-top: 150px;
background: url(../images/bg-22.jpg) no-repeat center fixed;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
background-size: 100% 100%;
-ms-background-size: 100% 100%;
-o-background-size: 100% 100%;
}
关于html - 全屏背景不适用于ipad,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17134352/