电脑装的IE8,360浏览器和IE浏览器都不能显示body元素设的背景图片。代码如下:
body {
background-image: url(../image/profile/profile_bg.png);
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
background-color: #363739;
}
改成:
html, body {
background-image: url(../image/profile/profile_bg.png);
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
background-color: #363739;
}
另一个电脑装的IE10,没有这个问题。