English 中文(简体)
铬在刷新后改变样式, 当我右单击检查时纠正它
原标题:Chrome changes style after refresh and corrects it when I right click to inspect it

至少从我的经验来看 这是一个很奇怪的虫子

我对这个网站做了一个测试版本, 让你可以看到它现场直播这里

要转载的步骤:

输入网站,请看 the list ,只要它适合:

""https://i.sstatic.net/oRzvX.jpg" alt="此处输入图像描述"/ >

当您在窗口机器上做简单刷新 Im 时, 问题就会出现, 所以 < kbd> Ctrl R 或 < kbd> F5

the list 将会更改位置 :

""https://i.sstatic.net/8mVGW.jpg" alt="此处输入图像描述"/ >

我解决这个问题的主要问题是 当我试图检查这个元素时 它又回到了正确的位置...

请注意,如果您对 < kbd> Ctrl Shift R 或 < kbd> Ctrl F5 进行硬性更新,则元素将返回正确位置。

这怎么可能,是什么原因造成这种情况?如何解决这个问题?

最佳回答

上设置 HTML 的尺寸 :

<img id="imgSlot" src="img/slot.png" width="322" height="147">

问题不再发生

你原来的代码:http://jsbin.com/efejay

尺寸:http://jsbin.com/efejay/2

这显然是一个 WebKit 错误。 我认为它和图像缓存有关。 我曾经见过类似的事情, 但通常涉及 JavaScript 。 例如 : < a href="https:// stackoverflow.com/ questions/ 10590482/jquery- height- returning- false-values/ 10591202# 10591202" >jQuery 高度 () 返回虚假值

问题回答

尝试“ 强” 位置 : 在 < 强'rightColumn 上试相对 ,并将元素定位为 < 强 > 顶 和 < 强 > 左偏 , 而不是 < 强 > margin





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签