我正在制作一个网站,我想要一个不同的 ie 样式表。 在 ie 8 上它工作完美,但 ie9 似乎不明白。
我尝试了几个语句,比如
if lte IE 10
或
if IE
或
if IE 9
现在我在这个问题中发现:Conditional Comments not working in IE9 (CF environment)
下面的也不起作用
if gte IE 7
我只是不知道我做错了声明是正确的,因为它在 ie8 中工作..
完整的声明是:
<!--[if gte IE 7]>
<link href="<?php echo bloginfo('template_directory'); ?>/ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
最佳答案
尝试相同但不使用 CC 注释(即插入链接标记而不在 CC 中换行)。
可能您的问题是从服务器接收到的 MIME 类型(IE9 错误)。
关于internet-explorer - 如果 ie 条件标记在 ie9 中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18047739/