用jquery修复IE Z索引

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用jquery修复IE Z索引相关的知识,希望对你有一定的参考价值。

Useful trick from css tricks blog at http://css-tricks.com/snippets/jquery/fixing-ie-z-index/
  1. $(function() {
  2. var zIndexNumber = 1000;
  3. // Put your target element(s) in the selector below!
  4. $("div").each(function() {
  5. $(this).css('zIndex', zIndexNumber);
  6. zIndexNumber -= 10;
  7. });
  8. });

以上是关于用jquery修复IE Z索引的主要内容,如果未能解决你的问题,请参考以下文章