3
对于某些手机,一切工作正常,但是当我在HTC上测试它时背景图像未显示。在某些手机中未显示背景图像
CSS
header {
background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(../images/lets-get-down-to-business.jpg);
background-size: cover;
height: 100vh;
background-position: center;
}
以及接触的BG图像
@media only screen and (max-height:600px){
header {
height: 600px;
}
}
任何帮助的唯一查询将与解释可以理解的。
谢谢!
最好的猜测是 - 旧的浏览器不支持'linear-gradient',如果需要的话只使用背景图片,以及'vh'你会找到另一种方法来做到这一点。 – Stickers
你可以尝试背景大小:自动100%;告诉我之后会发生什么。 – divy3993
你能指定HTC吗? –