为什么我的IE6条件样式表不工作? [英] Why isn't my IE6 Conditional stylesheet not working?

查看:90
本文介绍了为什么我的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.

这篇关于为什么我的IE6条件样式表不工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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