Transparent PNG animate problem on Internet Explorer

前端 未结 10 2073
误落风尘
误落风尘 2020-12-29 16:05

CSS Code:

#btn{
  background: url(transparent.png) no-repeat;
  filter: alpha(opacity=0);
  -moz-opacity: 0;
  -khtml-opacity: 0;
  opacity: 0;
}
         


        
10条回答
  •  别那么骄傲
    2020-12-29 17:06

    For me it worked to just include the filter property with blank value in jQuery's .animate()function

    Maybe this will work for you, too.

    $("#btn").animate({opacity:1,"margin-left":"-25px", filter:''});

    Additionally you might have to remove the filter property from your button's CSS.

提交回复
热议问题