3

现在IE9已经出来了,我注意到IE = EmulateIE7技巧也会影响它。 我怎样才能让它只针对IE8?如何仅针对IE8使用IE = EmulateIE7?

到目前为止,我试过条件注释

<!--[if IE 8]> 
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" > 
<![endif]--> 

但由于某些原因,它不工作(也许有条件的意见不与meta标签工作?)。任何人有任何想法?

回答

3

我读过,使用分号作为分隔符不工作,那你应该使用逗号代替,即:

内容= “IE = EmulateIE7,IE = EmulateIE9”

和NOT:

content =“IE = EmulateIE7; IE = EmulateIE9“

+0

我可以使用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