Skip to content

Instantly share code, notes, and snippets.

@e2kaneko
Created November 13, 2012 08:04
Show Gist options
  • Save e2kaneko/4064594 to your computer and use it in GitHub Desktop.
Save e2kaneko/4064594 to your computer and use it in GitHub Desktop.
IE7(6も。)で、position:absoluteまたはrelativeの場合にz-indexが自動的に0に設定されちゃう問題の対応
<script>
// IEのばかーーー
// いやだこんなの(>_<)
$(function() {
var zIndex = 1000;
$('div').each(function() {
$(this).css('zIndex', zIndex);
zIndex -= 10;
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment