Jquery Firefox在背景位置上滚动:固定;
我要和你去潜水Jquery Firefox在背景位置上滚动:固定;,jquery,css,firefox,position,background-image,Jquery,Css,Firefox,Position,Background Image,我要和你去潜水 #myDiv{ width:100%; height:100%; overflow:hidden; background-image:url('../images/test.png'); background-repeat:no-repeat; background-attachment:fixed; background-position:100% 0; } 因
#myDiv{
width:100%;
height:100%;
overflow:hidden;
background-image:url('../images/test.png');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:100% 0;
}
因此,这将工作,但我有麻烦在Firefox中滚动。如果我用我的鼠标滚轮滚动这个图像,并且图像超过1MB,firefox是不平稳的。我怎样才能防止这种情况发生?你不能缩小图像的大小吗?!不抱歉,这是一个完整的背景图像,必须具有最小1900px的宽度