html - 什么是怪癖模式?

标签 html css quirks-mode

在很多关于设计的文章中,都会提到怪癖模式。 任何人都以纯文本和发展前景对这件事有想法吗?

最佳答案

您可以阅读此链接 :

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

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

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

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 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.

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.

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

关于html - 什么是怪癖模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1695787/

相关文章:

Javascript:生成自定义数量的 TextAreas

html - 使用 CSS 在 HTML 页面上的格式不正确

css - JSBIN 与 LESS CSS

html - CSS:图像上的 z-index 使按钮不可点击

css - 变换旋转在 Quirks 模式下不起作用

html - 页面卡在怪癖模式

javascript - 对象嵌入链接内的随机变量

jquery - li,ul 类对象不会调整

css - IE9 怪癖模式下 css ID 开头的下划线未注册

javascript - jQuery,统计<ul>中动态添加的<li>的数量