修复了背景附件无法在Chrome浏览器中运行的问题 [英] background-attachment fixed not working in chrome
本文介绍了修复了背景附件无法在Chrome浏览器中运行的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我曾尝试在Google上寻求帮助,这似乎是Chrome中的错误,但我仍然找不到解决方案.我看了很多与此类似的stackoverflow问题,但这些解决方案仍然无济于事.
I tried google for help on this and it seems to be a bug in chrome but I still can't find a solution. I have taken a look at many stackoverflow questions similar to this but those solutions still didn't help.
当我尝试向下滚动页面时,背景图像闪烁并混乱.我正在Ubuntu桌面上使用Google Chrome版本35.0.1916.153
When I try to scroll down on the page the background-image flickers and messes up. I am using Google Chrome Version 35.0.1916.153 on Ubuntu Desktop
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
此外,我尝试删除背景位置,但仍然无法正常工作.
Also, I tried removing the background-position but still doesn't work.
推荐答案
如此处所示:尝试仅更改为 position:static
.
这篇关于修复了背景附件无法在Chrome浏览器中运行的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文