Animate opacity doesn't work properly on IE

前端 未结 14 860
广开言路
广开言路 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 14:58

    I´ve had the same problem with the IE 7, the problem was a trailing comma after the opacity property

    jQuery(this).animate({opacity:1.00,},800);
    

    It has to be:

    jQuery(this).animate({opacity:1.00},800);
    

提交回复
热议问题