不能以特定的屏幕比例来定位IE10和IE 11 css [英] can't target IE10 and IE 11 css in specific screen ratio

查看:91
本文介绍了不能以特定的屏幕比例来定位IE10和IE 11 css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是

  @media屏幕和(-ms-high-contrast:active),(-ms-high -contrast:none){} 

针对IE10和IE11 但问题是我想要定位特定的屏幕尺寸,比如

  @media(min-width:980px)和最大宽度:1199px){.span2 {width:20px;}}。 

所以有什么帮助?

解决方案

最后,我在这里找到了答案: http://browserhacks.com/

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


I am using

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {  }

for targeting IE10 and IE11 with CSS but the problem is that I want to target specific screen dimensions, something like

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

so any help?

解决方案

finally i found the answer here: http://browserhacks.com/

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

这篇关于不能以特定的屏幕比例来定位IE10和IE 11 css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆