gpt4 book ai didi

html - X-UA-Compatible 在包含在条件注释中时不起作用?

转载 作者:行者123 更新时间:2023-11-28 03:28:55 24 4
gpt4 key购买 nike

我最近在条件评论中遇到了以下元标记:

<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->

如果我错了请纠正我,但经过一些测试后我得出结论,这个评论似乎阻止 IE 以首选边缘模式显示文档。

有人知道为什么首先要在条件注释中放置 X-UA 元标记吗?

最佳答案

Anybody knows why

条件注释和X-UA-Compatibile都是预处理器

and is there any use of placing X-UA meta tag in a conditional comment in the first place?

没有

关于html - X-UA-Compatible 在包含在条件注释中时不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19269196/

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