Created
September 2, 2011 09:56
-
-
Save jmblog/1188292 to your computer and use it in GitHub Desktop.
Check z-index in IE6/7
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
$('*').each(function() { | |
var position = $(this).css('position'), | |
zIndex = $(this).css('z-index'); | |
if (position != 'static' && zIndex != 'auto') { | |
console.log(position, zIndex, $(this)); | |
} else if (position != 'static') { | |
console.log(position, '0 in IE', $(this)); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment