如何将浏览器 ie6 的 asp.net 应用程序代码更改为 ie8
我们开发了一个asp.net应用程序,它与ie6兼容。现在我们的客户希望该应用程序与 ie8 兼容。所以我需要在我们的应用程序中更改什么,以便它可以兼容 ie8。
如果有人知道这个问题的解决方案,请告诉我
we developed one asp.net application , that is compatible for ie6 . now our client want to compatible of that application to ie8. so what i need to change in our application so that it can be compatible for ie8.
please let me know if any body know solution for this
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实上,IE6是存在兼容性问题的。 IE8 符合当前 Web 标准的很大一部分,并且这些标准都有详细记录。如果您不再需要支持 IE6,只需查找标准并针对它们编写代码即可。
除此之外,除了与真实的东西进行测试之外,几乎没有其他方法。建议的方法是为每个版本安装一个虚拟机(因为您不能在同一操作系统上安装多个版本的 IE)。 Microsoft 为此特定目的提供免费操作系统映像(限时激活)。
如果您需要同时支持 IE6 和 IE8,最好的选择是条件注释:请参阅 http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx 获取文档。它们允许您仅显示选定版本的 IE 的内容,并对其余版本(包括非 IE 浏览器)隐藏内容。
IE8 还添加了一些可能会影响您的安全措施,因此请务必进行彻底测试。
Actually, IE6 is the one that has compatibility problems. IE8 complies to a large part of current web standards, and those are well documented. If you don't need to support IE6 anymore, just look up the standards and code against them.
Other than that, there is hardly any other way than test against the real thing. The recommended way of doing so (since you can't have multiple versions of IE on the same OS install) is to install one virtual machine per version. Microsoft offers free OS images (with time-limited activation) for this particular purpose.
If you need to support both IE6 and IE8, your best bet are conditional comments: see http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx for documentation. They allow you to show content for selected versions of IE only, and hide it for the rest (including non-IE browsers).
IE8 also adds a few security measures that could bite you, so be sure to test thoroughly.