Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.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
IE的条件html规则_Html_If Statement_Conditional - Fatal编程技术网

IE的条件html规则

IE的条件html规则,html,if-statement,conditional,Html,If Statement,Conditional,我正在尝试使用IE和其他浏览器的条件规则进行重定向。问题是,它只在IE中有效,而在重定向页面中的所有其他页面中都有效。 这是页面的代码: <HTML> <HEAD> <TITLE>Benessere Globale</TITLE> <meta charset="utf-8"> <!--[if lt IE9]> <p class="chromeframe">Stai usando una versione

我正在尝试使用IE和其他浏览器的条件规则进行重定向。问题是,它只在IE中有效,而在重定向页面中的所有其他页面中都有效。 这是页面的代码:

<HTML>
<HEAD>
<TITLE>Benessere Globale</TITLE>
<meta charset="utf-8">

<!--[if lt IE9]>
    <p class="chromeframe">Stai usando una versione di Internet Explorer <strong>obsoleta</strong>. Per una migliore visualizzazione di questo sito <a href="http://www.microsoft.com/it-it/download/internet-explorer-9-details.aspx">aggiorna il tuo browser alla versione IE9 o IE10</a> o <a href="http://www.google.com/chromeframe/?redirect=true">attiva Google Chrome Frame</a>.<br><br>
    <span>Per visualizzare comunque il sito <a href="/beta/shtml/home.shtml" >clicca qu&igrave;</a></span>
    </p>
<![endif]-->

<!--[if !IE]>
<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=http://www.benessereglobale.net/beta/shtml/home.shtml">
<![endif]-->


</HEAD>
<BODY>
<p>Redirect in corso...</p>
</BODY>
</HTML>

贝内塞尔环球酒店
在科索重定向


谢谢

只有IE可以阅读条件注释,而不是其他浏览器。

只有IE可以阅读条件注释


但是新版本(IE10或更高版本)无法读取条件注释。

我知道,上述条件仅适用于IE。其他浏览器忽略了这一点。请删除第二部分并仅使用
[如果lt IE9]
。因为IE只能读取条件