当你在Windows 8中使用鼠标滚轮滚动时,固定的背景图像会飞快地弹跳。这仅影响IE 10和IE 11。这也会影响具有 position:fixed
属性的元素。
以下是一个具有固定背景图像的示例:
http://www.catcubed.com/test/bg-img-fixed.html
以下是示例代码:
#section{
position: fixed;
top:0;
left:0;
background-color:#eee;
background-position: top left;
background-image: url("images/7.png");
background-size: auto;
background-repeat: no-repeat;
z-index: 10;
}
在IE 10和11中有没有保持背景静止的解决方案?
opacity:0.99
引起的(这是解决Mac上更粗字体的方法)。 - nebulousGirl// 无平滑滚动 var wheelDelta = event.wheelDelta; var currentScrollPosition = window.pageYOffset; window.scrollTo(0, currentScrollPosition - wheelDelta); });
} - Windwalkerbox-shadow
,我能够减少卡顿。 - Rudey