缺点是使用Internet Explorer的兼容模式 [英] Cons of using Internet Explorer's Compatibility Mode

本文介绍了缺点是使用Internet Explorer的兼容模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IE中将网站强制浏览为兼容模式有什么缺点?假设我们强制IE9为 IE8兼容模式




  • 性能缺陷

  • 任何新的IE9特定功能,例如HTML5 / CSS3 / SVG






为什么?



我们运行自2000年以来开发的遗留网络应用程序,所以它是一个混乱的球争取与Chrome,Opera,Firefox,IE6 / 7/8兼容,现在我们决定添加IE9到列表。但是与IE9我们遇到的问题与打印,权限deniendJavaScript错误(可能是关于跨框架JavaScript调用)和下一个问题 - 容易的解决方法是强制IE9的行为作为一个IE8,然后一切正常。但我仍然不确定是否可以去...

解决方案


公共网站(为我们的客户)


您有一个2000年开发的公共网站,它不适用于现代浏览器?不再使用它或重写它。



不要破解您的代码以支持现代浏览器,该网站显然写得不好,不适用于标准。



您可以利用这种不兼容性的唯一的地方是内联网应用程序,甚至是



您不能对公众面对的客户说: 。重新开发您的网站以符合W3C HTML / CSS。

标准和ES5标准,它将是面向未来的(几年来)。



唉,网络的工作方式是, > 5岁以上的用户已弃用。因此,请每隔5年重写一次,或退出网络业务。



模式,不要。 IE6-8是可怕的引擎,应该避免像瘟疫。



您的代码需要匹配标准,您应该修复/ shim / patch任何浏览器特定的错误,其中那些浏览器不实施


What are cons of force a web site viewed in IE to compatible mode? Say we force IE9 to IE8 compatiblity mode?

  • Performance drawbacks
  • Can't use any new IE9 specific features like HTML5/CSS3/SVG

Why?

We run legacy web app which is developed since 2000 so it's a mess ball fighting to be compatible with Chrome, Opera, Firefox, IE6/7/8 and now we decide to add IE9 to the list. But with IE9 we run in issues with printing, "Permission deniend" JavaScript errors (probably something about cross-frame JavaScript calls) and next issues - the easy workaround is to force IE9 to behave as a IE8 and then everything works fine. But I am still not sure if it's way to go...

解决方案

first our app is public site (for our clients)

You have a public website developed in 2000 and it doesn't work on modern browsers? Deprecate it or re-write it.

Don't hack your code to support modern browsers, the website is clearly poorly written and doesn't apply to standards. You can't get away with this.

The only place where you can get away with this level of incompatibility is intranet applications and even then you should simply state "it works on browser X, live with it"

You can't say that to public facing clients. I mean you can try, but have fun losing business to your competitors.

Re-develop your website to match the W3C HTML/CSS standards and the ES5 standards and it will be completely future facing (for some years).

Alas, the way the web works is that anything more then 5 years old is deprecated. So either re-write it every 5 years or get out of the web business.

In terms of actually using compatibility mode, don't. IE6-8 are horrible engines and should be avoided like the plague. If you use them then you can't write future facing standards compliant code.

Your code needs to match the standards and you should fix / shim / patch any browser specific bugs where those browsers don't implement the standards.

这篇关于缺点是使用Internet Explorer的兼容模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆