IE7 Absolute element appearing behind relative one

后端 未结 3 1778
天涯浪人
天涯浪人 2020-12-19 20:46

I know there is the bug where absolute elements appear above relative ones. However I am getting the reverse of this issue.

The z-index on the \"bottom\" element is

3条回答
  •  自闭症患者
    2020-12-19 21:09

    $(function() {
    var zIndexNumber = 1000;
    $('div').each(function() {
        $(this).css('zIndex', zIndexNumber);
        zIndexNumber -= 10;
    });
    

    });

    Use the above if already using jQuery. Details here: http://www.vancelucas.com/blog/fixing-ie7-z-index-issues-with-jquery/

提交回复
热议问题