<div style="background:url(images/index/images/indexdhbei.png);width:52px; height:52px; position:relative;" class="main_c_x_li1"><a target="_blank" href="zishu/guanyuwomen.html"><img class="suoxiao ddd" src="images/index/images/indexdh1.png" style="width:52px; height:52px;left:0px; top:0px; position:absolute;" /><img class="ddd fangda" src="images/index/images/indexdhjg1.png" style="width:0px;  height:0px;left:26px; top:26px; position:absolute;" /><img class="ddd imgsize" src="images/index/images/indexdhjg1.png" style="width:52px; height:52px; display:none;left:0px; top:0px; position:absolute;" />
</a>
</div>
$(document).ready(function(){
 var imgheightm;
  var imgwidthm;
 var imgheighta;
 var imgwidtha;
  $ (".main_c_x_li1").hover(function(){
imgheightm =  $(this).children().children(".imgsize").css("height");
imgheightm=parseInt(imgheightm)/2;
imgwidthm =  $(this).children().children(".imgsize").css("width");
imgwidthm=parseInt(imgwidthm)/2;
var imgheightma = $(this).children().children(".imgsize").css("height");
    imgheighta = imgheightm*2;

 imgwidtha =imgwidthm*2;
  $(this).children().children(".suoxiao").animate({
  
width:0,
height:0,
top:imgheightm,
left:imgwidthm   }, 300,function aa()
{

$(this).siblings('.fangda').css("visibility","visible"); $(this).siblings('.fangda').animate({
width:imgwidtha,
height:imgheighta,
top:0,
left:0
  }, 300);
}  );  },function cc()
{
 
$(this).children().children(".fangda").css("visibility","hidden");
$(this).children().children(".fangda").stop();
$(this).children().children(".suoxiao").stop();
$(this).children().children(".suoxiao").css("visibility","visible");
 $(this).children().children(".suoxiao").animate({
width:imgwidtha,
height:imgheighta,
top:0,
left:0
  }, 300);
});
});
我写了个鼠标经过图片缩小放大的动画 jspng插件就不管用了 IE6不透明了 不用插件有什么方法解决吗 IE6 png透明问题

解决方案 »

  1.   

    ie6 png 
      改用css 设置图片background:url(xxxx.png) repeat-x;!important;
    *filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src="xxx.png");
      

  2.   

    ie6本就不支持png图片的背景色
    已经有处理该问题的js文件,
    搜一下DD_belatedPNG