如何检测最大宽度 属性 的 IE 媒体查询?

How to detect an IE media query with a max-width property?

我有以下测试来帮助我检测 IE11 中的 CSS 修改....

  @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .melement {
      border:solid 1em red;
    }
  }

但是当我尝试检查最大宽度设置时,它无法正常工作...

 @media all and (-ms-high-contrast: none), (-ms-high-contrast: active), (max-width: 550px) {
    .melement {
      border:solid 1em red;
    }
  }

我在我的过程中做错了什么?

谢谢

试试这个:

 @media all and (-ms-high-contrast: none) and (max-width: 550px), 
        all and (-ms-high-contrast: active) and (max-width: 550px) {
    .melement {
      border:solid 1em red;
    }
  }