为什么IE11忽略了有条件的评论 [英] Why is IE11 Ignoring Conditional Comment

查看:147
本文介绍了为什么IE11忽略了有条件的评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 8.1上运行IE11。我在页面中有以下标题:

I'm running IE11 on windows 8.1. I have the following header in a page:

<!DOCTYPE html>
<html>
<head>
        <!--[if IE]><meta http-equiv='X-UA-Compatible' content='IE=edge'><![endif]-->

我放弃了自己的想法还是IE11现在忽略了这些条件注释?我在评论中插入这个内容的原因是为了帮助进行html验证。如果我删除评论,它会按预期工作。

Am i loosing my mind or does IE11 now ignore these conditional comments? The reason i am inclosing this in the comments so to help with html validation. If i remove the comment it works as expected.

推荐答案

http://www.sitepoint.com/microsoft-drop-ie10-conditional-评论/

这篇关于为什么IE11忽略了有条件的评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆