【发布时间】:2016-09-28 23:03:01
【问题描述】:
目前我使用的 CSS 类是:
body.srp-map-view {
.page-content {
position: absolute;
top: 49px;
right: 0;
left: 0;
bottom: 0;
overflow-x: hidden;
}
}
如果是 IE 9 或 IE 10 我必须添加 margin-top: 29px;属性到上面的类。
我尝试了一些在 stackoverflow 中找到的媒体查询,但它们不起作用。除了媒体查询还有其他写法吗?
【问题讨论】:
-
你可以把它放到一个单独的css文件中,然后使用IE的条件cmets,
<!--[if IE9] --><link href="ie9stuff.css" /><![endif]-->
标签: css internet-explorer internet-explorer-9 internet-explorer-10