现在IE9已经出来了,我注意到IE = EmulateIE7技巧也会影响它。 我怎样才能让它只针对IE8?如何仅针对IE8使用IE = EmulateIE7?
到目前为止,我试过条件注释
<!--[if IE 8]>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
<![endif]-->
但由于某些原因,它不工作(也许有条件的意见不与meta标签工作?)。任何人有任何想法?
现在IE9已经出来了,我注意到IE = EmulateIE7技巧也会影响它。 我怎样才能让它只针对IE8?如何仅针对IE8使用IE = EmulateIE7?
到目前为止,我试过条件注释
<!--[if IE 8]>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
<![endif]-->
但由于某些原因,它不工作(也许有条件的意见不与meta标签工作?)。任何人有任何想法?
使用双模式:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7, IE=EmulateIE9">
这里提到: Emulate IE7 for IE8 but not for IE9 using "X-UA-Compatible"
我读过,使用分号作为分隔符不工作,那你应该使用逗号代替,即:
内容= “IE = EmulateIE7,IE = EmulateIE9”
和NOT:
content =“IE = EmulateIE7; IE = EmulateIE9“
我可以使用httpd.conf进行双模问http://stackoverflow.com/questions/13189817/how-do-i-set-different-options-for-x-ua-compatible-in-apache-for-ie8-and-ie9 – ppant 2012-11-02 09:11:20
使用逗号而不是分号 – courtsimas 2013-02-22 22:52:07