Created
October 29, 2010 18:27
-
-
Save sproutventure/654071 to your computer and use it in GitHub Desktop.
IE browser body class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Checks userAgent and adds body classes for IE | |
jQuery(document).ready(function() { | |
if (jQuery.browser.msie) { | |
jQuery('body').addClass('ie'); | |
jQuery('body').addClass('ie' + $.browser.version.substring(0, 1)); | |
} | |
}); |
Author
sproutventure
commented
Oct 29, 2010
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment