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之后其他参数都转化正常,唯有zIndex一点都没变。在外部直接设置self.css({zIndex:4})也没卵用,仿佛不存在似的……
一瞬儿光
相关分类