<!DOCTYPE html>和旧版浏览器 [英] <!DOCTYPE html> and older browsers

查看:125
本文介绍了<!DOCTYPE html>和旧版浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<!DOCTYPE html> 是否也为旧版浏览器触发标准模式?说在所有现代浏览器中并不是很精确。



我对IE6特别感兴趣。



谢谢。

解决方案

这就是HTML5 doctype的存在方式(用外行的话来说):



制作标准的人想要更简单的文档类型。他们发现<!DOCTYPE html> (这很简单)会在浏览器中触发标准模式。他们决定用HTML5将其标准化。



真实的故事。

Does <!DOCTYPE html> trigger standards mode for older browsers as well? Saying "in all modern browsers" isn't very precise.

I am especially interested in IE6.

Thank you.

解决方案

This is how the HTML5 doctype came into existance (in layman's terms):

The guys who make the standards wanted a simpler doctype. They found out that <!DOCTYPE html> (which is as simple as it gets) does trigger standards mode in browsers. They decided to standardize it in HTML5.

True story.

这篇关于&lt;!DOCTYPE html&gt;和旧版浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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