我现在使用的是IE11,我觉得为了网页开发最好有一些额外的工具。我经常会用下面这些标签来检测旧版糟糕的IE浏览器:
<!--[if lt IE 7]><html class="ie ie6 some-custom-class"><![endif]-->
<!--[if IE 7]><html class="ie ie7 some-custom-class"><![endif]-->
<!--[if IE 8]><html class="ie ie8 some-custom-class"><![endif]-->
<!--[if IE 9]><html class="ie ie9 some-custom-class"><![endif]-->
<!--[if gt IE 9]><html class="ie some-custom-class"><![endif]-->
<!--[if !IE]><!--><html class="some-custom-class"><!--<![endif]-->
我将IE11设置为IE8-9兼容模式,但它忽略了上述标签。如果没有办法打开它们,那么我不明白为什么要制作这些工具-.-' 这有逻辑吗?
无论如何,我是否需要安装win 7才能使用IE 8-9? http://www.browserstack.com <-我更喜欢客户端而不是远程访问。
是否有类似补丁的东西可以使“现代”浏览器的开发工具可用?
或者也许还有另一种方法可以使用真正轻量级的脚本检测旧浏览器。
文档模式
和用户代理字符串
。标签仍然被忽略。 - Macko Tarana