getMaxZIndex = function () { var maxZ = Math.max.apply(null, $.map($(‘body *‘), function(e,n) { if ($(e).css(‘position‘) != ‘static‘) return parseInt($(e).css(‘z-index‘)) || 1; })); return maxZ; };
时间: 2024-10-06 18:19:37
getMaxZIndex = function () { var maxZ = Math.max.apply(null, $.map($(‘body *‘), function(e,n) { if ($(e).css(‘position‘) != ‘static‘) return parseInt($(e).css(‘z-index‘)) || 1; })); return maxZ; };