首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

在IE浏览器中正确显示PNG透明图片

整理日期:2007年12月22日 【字体:


伊图教程网[www.etoow.com]
http://www.etoow.com/html/2007-12/1198306698.html
  if (img.align == "left") imgStyle = "float:left;" + imgStyle
  if (img.align == "right") imgStyle = "float:right;" + imgStyle
  if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
  var strNewHTML = "<span " + imgID + imgClass + imgTitle
  + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
  + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
  img.outerHTML = strNewHTML
  i = i-1
 }
}
}
window.attachEvent("onload", correctPNG);
 </script>


  也可以把这段代码单独加在一张图片上:

以下是引用片段:
<span
style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='male.png',sizingMethod='scale');"></span>
Tags:
在IE浏览器中正确显示PNG透明图片
'http://www.etoow.com/html/2007-12/1198306698.html
1
 
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved