快捷导航

求助:为什么animate 里设置zIndex无效??

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})也没卵用,仿佛不存在似的……

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

参与会员1

animate是动画效果,没有zIndex参数,可以外部添加。
回复

使用道具 举报

可能感兴趣的问答

发新帖
  • 微信访问
  • 手机APP