将目标IE8与条件注释工作? [英] Will targeting IE8 with conditional comments work?

查看:108
本文介绍了将目标IE8与条件注释工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当IE8发布时,以下代码是否可以添加条件样式表?

When IE8 is released, will the following code work to add a conditional stylesheet?

<!--[if IE 8]>
  <link rel="stylesheet" type="text/css" href="ie-8.0.css" />
<![endif]-->

我已经阅读了有关这些是否与测试版兼容的冲突报告。我希望有人能分享他们的经验。谢谢。

I've read conflicting reports as to whether this works with the beta. I'm hoping someone can share their experience. Thanks.

推荐答案

它适用于我 - 无论是在怪异模式还是在标准兼容模式。但是,当切换到IE8兼容模式时,不会工作。

It worked for me – both in quirks mode and in standards compliance mode. However, it does not work when switching to IE8 compatibility mode.

这篇关于将目标IE8与条件注释工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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