【发布时间】:2015-12-09 07:48:55
【问题描述】:
我知道如何编写 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;
}
【问题讨论】:
-
是否有您尝试定位的特定样式,这可能比尝试基于客户端浏览器编写样式更容易 - 这绝不是一个好主意
标签: javascript html css internet-explorer