Skip to content

Instantly share code, notes, and snippets.

@mkwebworker
Created November 5, 2013 12:56
Show Gist options
  • Save mkwebworker/7318606 to your computer and use it in GitHub Desktop.
Save mkwebworker/7318606 to your computer and use it in GitHub Desktop.
/* ********************** */
/* ** IE 10 Detection *** */
/* ********************** */
var doc = document.documentElement;
doc.setAttribute('data-useragent', navigator.userAgent);
// example: html[data-useragent*='MSIE 10.0'] .site-content { background: #f00 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment