Animate opacity doesn't work properly on IE

前端 未结 14 839
广开言路
广开言路 2020-12-23 14:13

I\'m trying to use animate() to change the height and opacity of a div. The div has an image background in CSS. It works fine on Firefox and Safari

14条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-23 14:44

    I was under the impression that jQuery did the whole opacity support thing for you. Does this work for all browsers?

    $('#list_box').animate({opacity: '1',height: '300px',top: newTop},{duration: 300});
    

提交回复
热议问题