.slide-4 {
background: url("images/slider2/10.png");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
position: relative;
z-index: 99999;
}
.slide-5 {
background: url("images/slider2/12.jpeg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
position: relative;
z-index: 99999;
}这是我的css代码,它们在移动浏览器中显示,但现在不在移动浏览器中显示,而且所有图像大小都小于1mb,最大图像大小为804kb,
发布于 2018-10-03 17:39:23
请检查div是否在媒体查询中有'height: auto‘样式。没有内容的元素的背景图像只有在它有固定的高度时才能工作。
https://stackoverflow.com/questions/52623962
复制相似问题