anpleenko
1/17/2017 - 8:34 AM

Показываем zindex

Показываем zindex

$('*').each(function(){
    if ($(this).css('z-index')) {
        var zindex = $(this).css('z-index')

        if (zindex == 'auto') {
          return
        }

        $(this)
            .css('border', '1px solid red')
            .prepend('<strong>' + zindex +'</strong>')
    };
});


$('*').each(function(){
    if ($(this).css('z-index')) {
        var zindex = $(this).css('z-index')

        if (zindex == 'auto') {
          return
        }

        console.log($(this), zindex)
    };
});