IE8 is doing my head in! I am getting completely different results in different versions of the same browser

妖精的绣舞 提交于 2019-12-24 09:57:03

问题


I am developing a site & it all looks good on Safari, Chrome, Firefox, even IE7 but my client keeps telling me that IE8 is screwed up. I can only recreate the errors that he is getting by using IETester on my Windows 7 machine.

My testing environment:

I have 3 different versions of IE8 to test with & am getting completely different in the 3 versions I have to test with. I use a mac, so all tests are done on 2 virtual machines using VirtualBox - Vista with IE8 installed & Windows 7 with IE9 & IETester installed.

Vista: IE8 on vista seems to run the site perfectly, albeit with a few minor bugs that I'm happy with.

Windows 7: Using IE9 I can change the browser & document modes, I have tried IE7, IE8 & IE9 for that matter all look totally fine. The only time I ever come close to what my client has seen is when I have used IETester - it looks almost identical to what my client has shown me from his non-IETester-using machine (by that, I have seen screengrabs of the pages he's seen).

One of the worst affected pages is the Facts page, there should only be one image at the top but instead I sometimes get 3! Could anyone point me in the right direction here? What is causing this random display bug on some versions of IE8 & why can I not replicate it on others.

EXAMPLES:

1: Facts page

  • How it does look (in IETester & on my client's machine): http://cl.ly/8zjY (BAD)
  • How it should look: http://cl.ly/8zh7

2: Benefits page intro

  • How it does look (in IETester & on my client's machine): http://cl.ly/8z8X (BAD)
  • How it should look: http://cl.ly/8zwz

3: Benefits page images

  • How it does look (in IETester & on my client's machine): http://cl.ly/8zTq (BAD)
  • How it should look: http://cl.ly/8zmO

I'd like to think that I have a good handle on IE bugfixing etc but this one is really baffling me - I really need the help.


回答1:


The ONLY reliable way to test a browser version is within that browser version. The various testing applications (IETester), browser "modes" (IE7 mode in IE9, etc.), etc. are only simulations, each with their own unique problems.

I too am on a Mac but I also have a real Windows machine and I use the free VPC and hard drive images provided by MS specifically for this purpose.

I don't see why you couldn't run MS VPC within a Windows Virtualization on the Mac.

EDIT:

Essentially, you already answer your own question in your title: "I am getting completely different results in different versions of the same browser"

Except the "different versions" are the various testing applications (IETester) and browser "modes". Your own experience is showing you that these behave differently than the real thing.




回答2:


Document Mode does not change the Agent string, Browser Mode does -- if you are using something like modernizr it will impact your code. You also need to check if you are running on a forced Browser Mode: IExx Compatibility View because it by defaults on Compatibility View Settings for intranet sites.



来源:https://stackoverflow.com/questions/6921015/ie8-is-doing-my-head-in-i-am-getting-completely-different-results-in-different

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!