是怪异模式有关在2011年? [英] Is quirks mode relevant in 2011?

查看:84
本文介绍了是怪异模式有关在2011年?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有了这样IE9,FF4的所有最新的浏览器,不断更新Chrome浏览器等等,我们还需要怪癖模式?

With all the latest browsers like IE9, FF4, ever updating chrome, etc., do we still need quirks mode?

如果是在那里是它有用吗?在该方案中?

If yes where is it useful? In which scenario?

推荐答案

没有。你永远不应该使用怪癖模式。它不再是任何一次IE 5.0的相关性和5.5停止使用。

No. You should never use quirks mode. It ceased to be of any relevance once IE 5.0 and 5.5 stopped being used.

这些都是它不支持标准模式,它需要包括支持他们将需要能够怪癖模式工作的最后一个浏览器,让任何网站。

Those were the last browsers which did not support standards mode, so any sites which needed to include support for them would have needed to be able to work in quirks mode.

不过,与IE6从那以后发布的所有浏览器的所有版本一起,支持标准模式。

However, IE6 along with all versions of all browsers released since then supports standards mode.

他们中有些人还携带怪癖模式传统支持,但你不应该允许他们使用它。 (如果你忽略了包括它引发了<!DOCTYPE> 你的HTML code的顶部,这就是为什么你shold总是声明DOCTYPE)

Some of them still carry legacy support for quirks mode, but you shouldn't allow them to use it. (it's triggered if you neglect to include a <!DOCTYPE> at the top of your HTML code, which is why you shold always declare a doctype)

在你需要支持IE5万一,然后使用怪癖模式。否则,不惜一切代价避免。

In the unlikely event that you need to support IE5, then use quirks mode. Otherwise, avoid at all costs.

如果您正在维护使用怪癖模式,那么你应该花时间来转换为使用标准模式code。

If you are maintaining code that uses quirks mode then you should take the time to convert to use standards mode.

如果它是一个面向公众的网站,然后使用怪癖模式现在甚至不应该考虑,因为它会看在大量的现代浏览器狰狞。即使它是在企业环境中,那么你我会强烈reccommend将其转换为标准模式,因为即使是IE6用户会从中受益(如果不出意外,这将让他们的最终升级到较新的浏览器痛苦少)。唯一的一次,你将无法使用标准模式,也就是说,如果你有一个客户是谁还是坚持了IE5。但是,如果你有,那么你应该已经尖叫着跑开。

If it's a public-facing website, then using quirks mode now should not even be contemplated, as it will look hideous in a lot of modern browsers. Even if it's in a corporate environment then you I would strongly reccommend converting it to standards mode, as even IE6 users will benefit from that (if nothing else, it'll make their eventual upgrade to a newer browser less painful). The only time you won't be able to use standards mode that is if you have a client who is still stuck with IE5. But if you've got that, then you should have run away screaming already.

这篇关于是怪异模式有关在2011年?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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