Skip to content

Instantly share code, notes, and snippets.

@hatched
Last active December 12, 2015 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hatched/4731427 to your computer and use it in GitHub Desktop.
Save hatched/4731427 to your computer and use it in GitHub Desktop.
IE10 Conditional
<!--[if !IE]><!--><script> // If It's not IE (or <IE10)
if (/*@cc_on!@*/false) { // If cc_on exists then if (!false)
document.documentElement.className+=' ie10'; // Add classname to element
}
</script><!--<![endif]-->
// http://msdn.microsoft.com/en-us/library/8ka90k2e%28v=vs.94%29.aspx
// Taken from http://www.impressivewebs.com/ie10-css-hacks/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment