@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { /* IE10+ CSS styles goes underneath */ #ie11 h2 { color: #fff; } #ie11 h2:hover { color: gray; } }
@media all and (-ms-high-contrast:none) { .foo { color: green } /* IE10 */ *::-ms-backdrop, .foo { color: red } /* IE11 */ }