jQuery's $('#divOne').animate({zIndex: -1000}, 2000) does not work?

后端 未结 2 1892
忘了有多久
忘了有多久 2020-12-29 11:30

I tried jQuery\'s

$(\'#divOne\').animate({zIndex: -1000}, 2000)

to that element which has a z-index of 1000, but it is still above the othe

2条回答
  •  萌比男神i
    2020-12-29 12:16

    You cannot animate the zindex. You can set it using .css.

    $("#divOne").css('z-index' , '-1000');

提交回复
热议问题