【发布时间】:2013-06-07 03:31:19
【问题描述】:
我有以下几点:
<!--[if IE]>
<style>
iframe {
margin-top: 0 !important;
display: none;
}
.c-position {
margin-top: 20px !important;
}
br {
display: none;
}
</style>
<![endif]-->
但是当我在 IE10 中看到我的 site 时,没有应用 IE 条件语句中的 CSS(例如 iframe 应该消失)。
我什至把这个绑起来了:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
所以 IE10 可以识别条件语句。
为什么我做错了?
【问题讨论】:
-
这里真正的问题是为什么你需要区别对待 IE10。您的 iframe 的内容是否像在例如铬?
标签: css internet-explorer internet-explorer-10 conditional-comments