简体   繁体   English

对您来说,这似乎是IE8浮动错误吗?

[英]Does this seem like an IE8 float bug to you?

I've noticed a strange behavior in two different sites when using IE8. 使用IE8时,我注意到在两个不同的站点中都有奇怪的行为。

The first site is in the site that I maintain xebra.com . 第一个站点在我维护xebra.com的站点中。

The second site is google analytics. 第二个站点是谷歌分析。

The behavior is that when an address is typed directly into the address bar of IE8, both sites display correctly, 行为是当直接在IE8的地址栏中键入地址时,两个站点均正确显示,

But when one of the sites has already been loaded, and you press the refresh button or F5 key, the layout gets all screwed up: 但是,当其中一个站点已经加载并且您按下刷新按钮或F5键时,布局就会全部搞砸:

See screenshots here: here 此处查看屏幕截图: 此处

Something is causing IE8 to render in 'quirks mode' which causes the breakage. 某种原因导致IE8以“怪异模式”渲染,从而导致损坏。

You can duplicate this by browsing to your site in IE8 and selecting Tools > Developer Tools > Document Mode > Quirks Mode. 您可以通过在IE8中浏览到站点并选择“工具”>“开发人员工具”>“文档模式”>“怪癖模式”来复制此内容。

Make sure your document is always being served in standards mode. 确保您的文档始终以标准模式提供。

EDIT My original answer had 'compatability mode' where it should have read 'quirks mode' - the two are different. 编辑我最初的回答是“兼容模式”,应该读为“怪异模式”-两者是不同的。

JS.Companion was what was causing this odd bug, and not IE8. JS.Companion是导致此奇怪错误的原因,而不是IE8。 Phew! 唷!

http://www.my-debugbar.com/wiki/CompanionJS/HomePage http://www.my-debugbar.com/wiki/CompanionJS/HomePage

I spent the whole morning trying to figure out what was going on, I removed companion.js and bingo my site is perfect! 我花了整个上午试图弄清楚发生了什么,我删除了partner.js,然后宾果游戏我的网站非常完美! thanks for this. 谢谢你

That's really strange. 真的很奇怪 I don't have the problem on my computer with Companion.JS installed and http://www.xebra.com/ web page (under Vista SP1). 安装了Companion.JS和http://www.xebra.com/网页(在Vista SP1下)的计算机上没有问题。

I would be happyto correct the Companion.JS bug that generates this problem if you can provide more information about the problem. 如果您可以提供有关此问题的更多信息,我很乐意纠正产生此问题的Companion.JS错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM