![]() |
1
4
不,你不能用条件句。 最好的方法是使用document.documentMode属性,如链接Pekka posted中所述。 How can I detect if IE8 is running in compatibility view? |
![]() |
2
0
|
![]() |
3
-1
最后,我选择了混合两种常见的策略来处理这个bug。 我创建了一个覆盖CSS文件,我使用条件注释导入它。但是,在IE8或IE9的情况下,这个覆盖看起来不太好,所以我包含了“forceIE intolatestrenderingmode”标题开关,如下所示。
|
![]() |
Stepan Yakovenko · AngularJS和IE兼容模式 11 年前 |