How do I target only Internet Explorer 10 for certain situations like Internet Explorer-specific CSS or Internet Explorer-specific JavaScript code?
I tried this, but
A good place to start is the IE Standards Support Documentation.
Here is how to target IE10 in JavaScript:
if ("onpropertychange" in document && !!window.matchMedia) {
...
}
Here is how to target IE10 in CSS:
@media all and (-ms-high-contrast: none) {
...
}
In case IE11 needs to be filtered or reset via CSS, see another question: How to write a CSS hack for IE 11?