简体   繁体   中英

Does this seem like an IE8 float bug to you?

I've noticed a strange behavior in two different sites when using IE8.

The first site is in the site that I maintain 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,

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:

See screenshots here: here

Something is causing IE8 to render in 'quirks mode' which causes the breakage.

You can duplicate this by browsing to your site in IE8 and selecting Tools > Developer Tools > Document Mode > Quirks Mode.

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. Phew!

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! 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).

I would be happyto correct the Companion.JS bug that generates this problem if you can provide more information about the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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