使用条件注释针对 IE8 是否有效? [英] Will targeting IE8 with conditional comments work?
本文介绍了使用条件注释针对 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屋!
查看全文