我正在为 IE6 添加一个额外的样式表
<!--[if IE 6]>
<link href="../../nCss/comunHome_ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->
但也影响到 IE7,
编辑-
即使
<!--[if lte IE 6]>
<link href="../../nCss/comunHome_ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->
知道为什么吗?
-edit2-
此外,与
function isIE()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
var rv = -1; // Return value assumes failure.
if (navigator.appName == 'Microsoft Internet Explorer')
{
var ua = navigator.userAgent;
var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
if (re.exec(ua) != null)
rv = parseFloat( RegExp.$1 );
}
return rv;
}
alert(isIE());
它输出 7...