如何在Firefox中关闭CSS属性background-attachment: fixed
,以下是示例:
div {
transform: translate3d(0,0,0); // if remove starts to work
width: 100%;
height: 2000px;
background-image: url('http://www.wallpapereast.com/static/images/001_Fish-Wallpaper-HD_hkNsK33.jpg');
background-size: cover;
background-attachment: fixed;
}
<div></div>
如果您从CSS中移除transform属性,则它将开始工作。仅在Firefox浏览器中复现。