亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

求助:為什么animate 里設置zIndex無效??

求助:為什么animate 里設置zIndex無效??

慕粉3795749 2016-12-07 15:44:22
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})也沒卵用,仿佛不存在似的……
查看完整描述

3 回答

?
一瞬兒光

TA貢獻178條經驗 獲得超70個贊

animate是動畫效果,沒有zIndex參數,可以外部添加。

查看完整回答
反對 回復 2016-12-07
  • 3 回答
  • 0 關注
  • 2839 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號