windows XP、Vista、Win7 之间 IE8 行为的差异?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1611948/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 13:19:17  来源:igfitidea点击:

Differences in IE8 behavior between XP, Vista, Win7?

windowsinternet-explorer-8cross-browser

提问by Piskvor left the building

Is there any significant difference in behavior (HTML, CSS, Javascript, ...) with Internet Explorer 8 on different operating systems?

Internet Explorer 8 在不同操作系统上的行为(HTML、CSS、Javascript 等)是否存在显着差异?

In other words, will a web page work the same way across IE8+XP, IE8+Vista and IE8+Win7, or are there some significant differences?

换句话说,网页在 IE8+XP、IE8+Vista 和 IE8+Win7 上的工作方式是否相同,或者是否存在一些显着差异?

(I'm aware that installed plugins and fonts will have an impact, but that's a bit outside my scope at the moment; assuming compatibility mode X-UA-Compatible: IE=8or edge)

(我知道安装的插件和字体会产生影响,但目前这有点超出我的范围;假设兼容模式X-UA-Compatible: IE=8edge



Although The IEBlogcontains very useful information, I haven't found this data there - so I'm assuming that there should notbe any difference. However, search has turned up this (vague) question: "IE8 on XP: looks great! IE8 on Vista: looks terrible". Will have to check IE8+{XP,V,7} in VM in the meantime.

虽然IEBlog包含非常有用的信息,但我还没有在那里找到这些数据 - 所以我假设应该没有任何区别。然而,搜索发现了这个(含糊不清的)问题:“XP 上的 IE8:看起来很棒!Vista 上的 IE8:看起来很糟糕”。同时必须在 VM 中检查 IE8+{XP,V,7}。

回答by Steve-o

There are at least 6 versions of MSIE 8 and there are likely differences in layout due to bug fixes in the latter releases. A list of versions is available on Microsoft's support site:

MSIE 8 至少有 6 个版本,由于后期版本中的错误修复,布局可能存在差异。Microsoft 的支持站点上提供了版本列表:

http://support.microsoft.com/kb/969393

http://support.microsoft.com/kb/969393

MSIE8 on Windows XP is version 8.00.6001.18702 and on Windows 7 is version 8.00.7600.16385.

Windows XP 上的 MSIE8 版本为 8.00.6001.18702,Windows 7 上的版本为 8.00.7600.16385。

回答by Temirlan M

There are some differences regarding css. When I used two divs, the first floated left and the second overflow:hidden; width:auto; IE8 on windows 7 rendered it correctly whereas IE8 on xp sp2 rendered the second div giving it incorrect width. Wierd!

关于 css 存在一些差异。当我使用两个 div 时,第一个向左浮动,第二个溢出:隐藏;宽度:自动;Windows 7 上的 IE8 正确呈现它,而 xp sp2 上的 IE8 呈现第二个 div,使其宽度不正确。奇怪!

回答by Rob

I have had significant problems on IE8, working from a windows 7 machine I tested the site in IE8 using the standard mode the quirks mode and the IE7 standards mode and had no issues, however my client was using IE8 on an XP machine and told me that there were issues with the layout. I checked the site and it had displayed with significantly different styles.

我在 IE8 上遇到了重大问题,在 Windows 7 机器上工作我使用标准模式、怪癖模式和 IE7 标准模式在 IE8 中测试了站点并且没有问题,但是我的客户在 XP 机器上使用 IE8 并告诉我布局有问题。我检查了该站点,它以明显不同的样式显示。

So yes, there is a difference between IE8 on XP and IE8 on Windows 7.... though I have yet to find out how these differences are happening and how to solve them.

所以,是的,XP 上的 IE8 和 Windows 7 上的 IE8 之间存在差异......尽管我还没有弄清楚这些差异是如何发生的以及如何解决它们。

回答by hrnt

At least Wikipediaclaims that Server Name Indication only works in Vista/Win7 versions of IE8. There might be other differences like this - after all, the system libraries IE uses might have differences between the different OS versions.

至少维基百科声称服务器名称指示仅适用于 IE8 的 Vista/Win7 版本。可能还有其他类似的差异 - 毕竟,IE 使用的系统库可能在不同的操作系统版本之间存在差异。

回答by Hyman

There are bizarre behavioural differences in IE8 on XP also for instance when tabbing between input controls in a table layout (think excel) it wraps when the focus reaches the last visible control - instead of the last control in the row. Luckily I haven't found any serious problems - so customers can still work.

XP 上的 IE8 存在奇怪的行为差异,例如在表格布局中的输入控件之间切换时(想想 excel),它会在焦点到达最后一个可见控件时换行 - 而不是行中的最后一个控件。幸运的是我没有发现任何严重的问题 - 所以客户仍然可以工作。

回答by Gijs W. Brouwer

I also found an other rather stunning difference between IE8 on Vista(64) and IE8 on XP(sp3). The way the value attribute on the button tag is treated. When you use <button value='10'>calculate 10%</button> the value submitted or extracted with javascript comes up with "calculate 10%" instead of 10 (the result on other major browsers) on older IE browsers (known issue) but also on IE8 on Vista. IE8 on XP on the other hand seems to comply to the standard behaviour the other browsers already embraced. Meaning it actually returns 10. Weird

我还发现了 Vista(64) 上的 IE8 和 XP(sp3) 上的 IE8 之间的另一个相当惊人的差异。处理按钮标签上的 value 属性的方式。当您使用 <button value='10'>calculate 10%</button> 时,使用 javascript 提交或提取的值在较旧的 IE 浏览器(已知问题),但也适用于 Vista 上的 IE8。另一方面,XP 上的 IE8 似乎符合其他浏览器已经采用的标准行为。这意味着它实际上返回 10。奇怪

回答by Ehsan Yazdani

Absolutely different rendering is possible. My project has differents view in IE8+XP and IE8+Win7. In IE8+XP CSS rendering has significant differences with Windows 7.

完全不同的渲染是可能的。我的项目在 IE8+XP 和 IE8+Win7 中有不同的视图。在 IE8+XP 中 CSS 渲染与 Windows 7 有显着差异。