2014-10-30 50 views
0

不能针对IE10和IE 11的CSS在特定的屏幕比例

@media (min-width: 980px) and (max-width: 1199px) { .span2{ width: 20px;}}. 

有帮助吗?

+0

您想将特定的样式附加到屏幕具有特定宽度是多少? – Chilion 2014-10-30 13:11:40

+0

aha这就是我想要的 – 2014-10-30 13:13:47

+0

随着IE10的推出,他们取消了条件目标 信息在这里在页面的底部http://css-tricks.com/how-to-create-an-ie-only -stylesheet/ IE10和IE11将像其他浏览器一样显示一些额外的代码。我昨天遇到了这个确切的问题。 单独定位IE10和11样式表的原因是什么? – 2014-10-30 13:14:56

回答

0

终于让我找到这里的答案:http://browserhacks.com/

@media (min-width: 980px) and (max-width: 1199px) { _:-ms-input-placeholder, :root .span2{ width: 20px;}}