Created
July 26, 2010 17:36
-
-
Save jimfleming/490892 to your computer and use it in GitHub Desktop.
Applies "zoom: 1" to block elements
This file contains 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
var fix_has_layout = function(container) { | |
var elements = $('*', container || document); | |
elements.each(function(element) { | |
if (element.css('display') == 'block') | |
element.css('zoom', 1); | |
}); | |
} | |
$(function() { | |
if ($.browser.msie) fix_has_layout(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment