1

在一个新的应用程序中,我们决定不再支持IE6,所以我们有一个条件注释来加载一个脚本。IE有条件的评论问题

代码是:

<!--[if lt IE 7]> 
      <h2 style="color:red;">Old Version of Internet Explorer Detected</h2> 
      <p style="color:red;">It appears that you're using an old version of Microsoft 
      Internet Explorer. This site is optimized for Internet Explorer 
      7 and above as well as Mozilla Firefox. Please download a 
      newer version of <a href="https://www.microsoft.com/windows/Internet-explorer/default.aspx"> 
      Internet Explorer</a> or <a href="https://www.mozilla.com/firefox/">Firefox</a> 
      before continuing. 
      </p> 
<![endif]--> 

然而,对于一个公司,评论火灾,尽管他们使用IE7和IE8的。

以下是访问日志,其中隐私信息被删除。

10.xxx.xx.xx - [15/Aug/2011:17:18:54 -0500]“GET /broker/js/ie6.js HTTP/1.1”200 147“https:// xx “.xxxxx.com/broker/registration”“Mozilla/4.0(compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)“”en-us“

任何想法??

安迪

+0

我的建议并不是将信息放在第一位。目前IE6已经过去了。它被世界上不到10%的人使用!即使微软也试图杀死它:http://www.ie6countdown.com/ – tw16

+0

但我同意,但是,我们约8%的用户仍然使用IE6,如果使用低于IE7的任何内容,此特定应用程序无法正常工作。我们选择不添加所有的IE6 CSS和JS黑客。 – Andy

回答

0

IE 7/8可以是使用IE6 "compatibility mode"

+0

IE7甚至有兼容模式吗? – Andy

+0

我认为这是IE 7以上,但我可能是错的。我没有安装IE 7来测试,恐怕。 – Spycho