最近开发一个彩信的系统,涉及到一些图片的处理,
发现在IE不支持PNG的透明背景,在网上搜索到了一些解决的方法,
但用起来也不是很方便:


1.使用 PNG 文件的 Web 开发人员可以使用 AlphaImageLoader 筛选器,如以下示例所示:
PNG 文件在 Internet Explorer 中不显示为透明<html><head></head><body bgColor="blue">
<!-- This DIV is the target container for the image.  -->
<DIV ID="oDiv" STYLE="position:absolute; left:140px; height:400; width:400;    
 filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(     
src='image.png', sizingMethod='scale');"
 >
</
DIV></body></html>    
PNG 文件在 Internet Explorer 中不显示为透明


2.一个PNG透明插件:
也是利用了 AlphaImageLoader 筛选器
https://files.cnblogs.com/cai9911/pngfix.rar

相关文章:

  • 2022-01-16
  • 2022-12-23
  • 2022-02-22
  • 2021-07-22
  • 2021-08-10
猜你喜欢
  • 2021-12-04
  • 2022-01-20
  • 2022-03-06
  • 2021-09-30
  • 2022-02-18
相关资源
相似解决方案