gpt4 book ai didi

html - X-UA-Compatible 元标记应该出现在字符集标记之前还是之后

转载 作者:可可西里 更新时间:2023-11-01 13:07:29 25 4
gpt4 key购买 nike

我需要强制 IE9 使用其标准模式,并具有以下 HTML:

<!doctype html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=9">

<meta charset="utf-8"> 是否正确?标记出现在 X-UA-Compatible 之前标签?

最佳答案

The X-UA-Compatible header isn't case sensitive; however, it must appear in the header of the webpage (the HEAD section) before all other elements except for the title element and other meta elements.

来源:Specifying Legacy Document Modes

关于html - X-UA-Compatible 元标记应该出现在字符集标记之前还是之后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30653418/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com