Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如果IE7能采用[if IE 6]怎么办?_Html_Css_Internet Explorer 7_Conditional Comments - Fatal编程技术网

Html 如果IE7能采用[if IE 6]怎么办?

Html 如果IE7能采用[if IE 6]怎么办?,html,css,internet-explorer-7,conditional-comments,Html,Css,Internet Explorer 7,Conditional Comments,我正在为IE6添加一个传统样式表 <!--[if IE 6]> <link href="../../nCss/comunHome_ie6.css" rel="stylesheet" type="text/css" /> <![endif]--> 它输出7…您也可以为IE 7添加一个选项吗 <!--[if IE 7]> Special instructions for IE 7 here <![endif]-->

我正在为IE6添加一个传统样式表

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

它输出7…

您也可以为IE 7添加一个选项吗

<!--[if IE 7]>
Special instructions for IE 7 here
<![endif]-->

嗯,我想你可以用if和if

示例用法,如果我认为这应该有效

<!--[if (IE 6)&(!IE 7)]>

试试
mmmm。。。我不想这么做,因为IE7使用的是普通样式,只需要破解IE6,你能在行动中向我们展示一下吗?听起来不对。一个演示页面来显示它的发生可能会帮助我们了解发生了什么。尝试在正文中添加IE6条件注释,但输出一点文本,看看是否也会出现。另外,请尝试完全删除样式表链接,问题是否仍然存在(即,它是否也在其他地方加载)?我在IE7中看到它是红色的,在IETester中看起来很好。。。你用什么来测试一个真正的IE6和IE7浏览器?我会担心便携式IE6会以某种方式干扰,我以前在使用多个IEs时遇到了问题(我称之为交叉污染!)。这是否表示您正在使用IE7,是否收到任何橙色文本?
<!--[if IE 7]>
Special instructions for IE 7 here
<![endif]-->
<!--[if (IE 6)&(!IE 7)]>