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})也没...
一般的div标签的z-index为1,你设置了-1,有可能是将这个div标签向下移了一层,而鼠标点击的时候只能点击到最上边一层的div。
因为你点击不到他,他在图层下面