【问题标题】:Document mode in ieie中的文档模式
【发布时间】:2015-11-18 11:07:57
【问题描述】:

我有一个标题

<!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 中才能获取样式。为什么这不像我认为的那样工作。

【问题讨论】:

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


    【解决方案1】:

    从 IE10 开始,条件 cmets 为 no longer supported。

    你需要想出一种不同的方法来实现你所追求的结果。

    希望这会有所帮助...

    -- 兰斯

    【讨论】:

      猜你喜欢
      • 2017-11-15
      • 1970-01-01
      • 2014-10-11
      • 1970-01-01
      • 1970-01-01
      • 2013-06-15
      • 2012-08-21
      • 2012-08-24
      • 1970-01-01
      相关资源
      最近更新 更多