简体   繁体   English

X-UA-Compatible在附有条件注释时不起作用?

[英]X-UA-Compatible not working when wrapped in conditional comment?

I have recently run into following meta tag in a conditional comment: 我最近在条件注释中遇到了以下meta标签:

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

Correct me if I'm wrong but after some tests I came to a conclusion that this comment seems to prevent IE from displaying document in a preffered edge mode. 如果我错了,请纠正我,但是经过一些测试,我得出的结论是,此注释似乎阻止IE以首选边缘模式显示文档。

Anybody knows why and is there any use of placing X-UA meta tag in a conditional comment in the first place? 谁知道为什么,并且首先有条件将X-UA元标记放在条件注释中吗?

Anybody knows why 谁知道为什么

Conditional comments and X-UA-Compatibile are both preprocessors 条件注释和X-UA-Compatibile都是预处理器

and is there any use of placing X-UA meta tag in a conditional comment in the first place? 并且首先将X-UA元标记放在条件注释中有什么用?

No 没有

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM