我最近在条件评论中遇到了以下元标记:
<!--[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/