CSS在IE9的兼容模式下仅适用于IE11(不适用于IE9原生)?

时间:2015-12-09 07:48:55

标签: javascript html css internet-explorer

我知道如何编写CSS条件语句来发现IE9,但我不知道如何在IE11中运行 IE9兼容模式。这与3年前发布的问题here相同。经过很长一段时间,我正在重新开发新的浏览器。今天有没有办法为这里指定的新版本做到这一点? 比如,这里是代码示例(值不准确):

<!-- Use this in IE11 native -->
table#mystyle td.yes {
   width: 207px;
}

<!-- Use this in IE11 when compatibilty mode is in IE9 -->
table#mystyle td.yes {
   width: 300px;
}

1 个答案:

答案 0 :(得分:-1)

尝试此代码可能会有所帮助 `

<!--[if IE]>
<style type="text/css">
  /* IE CSS RULES HERE */
</style>
<![endif]-->

`

对于IE支持的CSS

click here

相关问题