gpt4 book ai didi

HTML 5 Doctype 导致 quirksmode?

转载 作者:技术小花猫 更新时间:2023-10-29 12:18:12 25 4
gpt4 key购买 nike

使用 HTML 5 Doctype 是否会在现代浏览器中导致 Quirks 模式,因为 HTML5 尚未发布?

(也就是说,现代浏览器在 HMTL5 开始传播之前就已经过时了,所以他们没有适本地支持它。)

如果是,这是否意味着 HTML 5 Doctype 暂且完全没有?

编辑:如果不是,它在不支持的浏览器中做什么

最佳答案

不,不是,看这个article .

What's nice about this new DOCTYPE, especially, is that all current browsers (IE, FF, Opera, Safari) will look at it and switch the content into standards mode - even though they don't implement HTML5. This means that you could start writing your web pages using HTML5 today and have them last for a very, very, long time.

关于HTML 5 Doctype 导致 quirksmode?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1886473/

25 4 0
文章推荐: javascript - 通过覆盖元素
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com