this.posterItems.each(function(){ var self = $(this), prev = self.prev().get(0)?self.prev():_this_.posterLastItem, width = prev.width(), height =prev.height(), zIndex = prev.css("zIndex"), opacity = prev.css("opacity"), left ? = prev.css("left"), top = prev.css("top"); self.animate({ width:width, height:height, zIndex:zIndex, opacity:opacity, left:left, top:top }); })按了nextbtn之后其他參數(shù)都轉(zhuǎn)化正常,唯有zIndex一點(diǎn)都沒變。在外部直接設(shè)置self.css({zIndex:4})也沒卵用,仿佛不存在似的……
求助:為什么animate 里設(shè)置zIndex無效??
慕粉3795749
2016-12-07 15:44:22