为什么我的IE6条件样式表不工作?

问题描述:

这让我疯狂。我试图使用条件IE6样式表。 我在此发布了此测试页。这是我放在我的head标签中的代码:

This is driving me nuts. I'm trying to use a conditional IE6 stylesheet. I posted this test page here. Here is the code I placed in my head tags:

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

在IE6中查看时,ie6.css应该将正文背景设置为红色。

The ie6.css should set the body background to red when viewed in IE6.

这里有什么问题?我相信这是一个蠢。

What's wrong here? I'm sure it's something dumb. Could someone please point it out to me?

您不会碰巧使用 IETester

You don't happen to be trying this using IETester?

因为使用IETester,条件注释将始终解析为最高安装版本的IE。

Because with IETester, Conditional Comments will always resolve to the highest installed version of IE.