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/52714256/

相关文章:

html - 如何在 Bootstrap 中将输入框与一些 sr-only 标签对齐

html - 如何防止 div 中断到下一行

javascript - Bootstrap 轮播视频

html - 在怪癖模式下删除ie9周围的边框?

html - Internet Explorer 11 X-UA-Compatible=IE8,框架的 UserAgent 错误

javascript - CSS - 悬停时向左移动图像一点点,如果没有悬停则返回原始位置

html - 填充底部,仅在列表中显示文本

css - PrimeFaces 如何更改咆哮的关闭图标颜色

javascript - Chrome 会拉伸(stretch)网站图片,Edge、IE、Firefox 不会

html - 为什么某些 DOCTYPE 声明会导致 100% 高度的表格和 div 停止工作?