谷歌浏览器只是部分加载背景图片 [英] Google chrome only partially loading background images

查看:241
本文介绍了谷歌浏览器只是部分加载背景图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个窗口和镀铬与我的网站MAC的麻烦,我有多人测试它在多台计算机,这行为是不是100%的时间,但是是很常见的。在它网站的当前状态,可浏览: georgereith.com/test/

I am having trouble with my website in chrome on both windows and mac, I have had multiple people test it on multiple computers and this behaviour is not 100% of the time but is very common. The website in it's current state can be viewed at: georgereith.com/test/

下面的图片显示了我的网站应该如何看待当前:

The image below shows how my website should look currently:

然而,当一些人用铬打开它,它加载这样的:

However when some people with chrome open it, it loads like this:

奇怪的行为是当你开始强调的东西在哪里丢失的背景应该是,Chrome似乎使更多的背景:

The strange behaviour is that when you start to highlight things where the missing background should be, chrome appears to render more of the background:

有谁知道这可能是导致这种行为?

Does anyone know what could be causing this behaviour?

推荐答案

这似乎是一个Chrome的错误,但我找不到它的任何引用。

This seems to be a Chrome bug, but I can't find any reference to it.

看来,当我开始在网上督察走开,所以也许你可以尝试运行的行为不端的元素上一些虚拟的JavaScript(注:我只是猜测这里):

It seems to go away when I start the web inspector, so maybe you could try to run some dummy javascript on the element that's misbehaving (Note: I'm just guessing here):

var acc = document.getElementById("accordion");
acc.className = acc.className;

这应该强制回流。

这篇关于谷歌浏览器只是部分加载背景图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆