我尝试谷歌寻求帮助,这似乎是 chrome 中的一个错误,但我仍然找不到解决方案。我已经查看了许多与此类似的 stackoverflow 问题,但这些解决方案仍然没有帮助。
当我尝试在页面上向下滚动时,背景图像会闪烁并变得困惑。 我在 Ubuntu 桌面上使用 Google Chrome 版本 35.0.1916.153
CSS 代码:
#left-container {
background-image: url('http://easource.com/wp-content/uploads/2014/07/traphouse4.jpg');
background-attachment: fixed;
background-position: -1% 0%;
background-repeat: repeat-y;
cursor: pointer;
}
您可以在 http://easource.com 上查看它的外观
此外,我尝试删除背景位置,但仍然无效。
最佳答案
如下所示:Fixed attachment background image flicker/disappear in chrome when coupled with a css transform
尝试仅更改为position:static
。
关于css - 背景附件已修复,无法在 chrome 中使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24901474/