什么是怪异模式? [英] What is quirks mode?

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

问题描述

在很多关于设计的文章中,提到了怪癖模式。
任何人都以纯文本和开发前景了解这件事情?

In a lot of articles about design, quirks mode is mentioned. Anybody have an idea about this thing in plain text and in a development prospective?

推荐答案

您可以在此链接中阅读

you can read in this links :

http://en.wikipedia.org/wiki/Quirks_mode

http://www.quirksmode.org/css/quirksmode .html

http://www.cs.tut.fi/~jkorpela/quirks-mode.html


现代浏览器通常尝试
根据
呈现HTML内容的W3C建议。然而,对
提供与旧的web
页的兼容性,并且提供额外的
直观功能,所有
浏览器支持备选
quirks模式。

Modern browsers generally try to render HTML content according to the W3C recommendations. However, to provide compatibility with older web pages, and to provide additional "intuitive" functionality, all browsers support an alternative "quirks mode".

Quirks模式不是
标准。在不同的浏览器中以
quirks模式渲染任何页面可能会使
不同。只要有可能,最好遵循W3C标准
,并尝试避免过去或现在浏览器的问题。

Quirks mode is not, however, a standard. The rendering of any page in quirks mode in different browsers may be different. Whenever possible, it is better to adhere to the W3C standards and try and avoid depending on any past or present browser quirks.

通常,当没有正确的DOCTYPE
声明时,怪异模式打开
,当
是DOCTYPE定义时关闭。然而,
无效的HTML - 对于选择DOCTYPE的
,也可能导致
浏览器切换到怪异模式。

Generally, quirks mode is turned on when there is no correct DOCTYPE declaration, and turned off when there is a DOCTYPE definition. However, invalid HTML - with respect to the chosen DOCTYPE - can also cause the browser to switch to quirks mode.

有关不同浏览器中不同
quirks模式的详细信息,可以在 QuirksMode.org 中找到

More information on the different quirks modes in different browsers can be found at QuirksMode.org

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

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