ie中的文档模式

时间:2015-11-18 11:07:57

标签: virtualbox internet-explorer-10 ie-developer-tools browser-testing

我有一个标题

<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 9]>
<html class="ie ie9" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 10]>
<html class="ie ie10" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) & !(IE 8) & !(IE 9) & !(IE 10)]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->

在我的虚拟框中,我有一个IE10版本正在运行。

.ie10 body {
 background:blue;
}

问题是我必须将文档粘贴到ie9以使其获取样式。为什么这不符合我的想法。

enter image description here

1 个答案:

答案 0 :(得分:0)

自IE10起,条件评论为no longer supported

您需要考虑一种不同的方式来完成您之后的结果。

希望这会有所帮助......

- Lance

相关问题