当前位置: 首页 > 图文教程 > 网络编程 > Javascript > IE6下如何让PNG图片变透明

Javascript
form中限制文本字节数js代码
use jscript with List Proxy Server Information
use jscript List Installed Software
List Installed Software Features
List Information About the Binary Files Used by an Application
List the Codec Files on a Computer
List the UTC Time on a Computer
List Installed Hot Fixes
excel操作之Add Data to a Spreadsheet Cell
Add Formatted Data to a Spreadsheet
Apply an AutoFormat to an Excel Spreadsheet
JavaScript语法着色引擎(demo及打包文件下载)
类之Prototype.js学习
一款JavaScript压缩工具:X2JSCompactor
iis6+javascript Add an Extension File
jscript之Open an Excel Spreadsheet
jscript之Read an Excel Spreadsheet
jscript之List Excel Color Values
去除图像或链接黑眼圈的两种方法总结
Add a Formatted Table to a Word Document

Javascript 中的 IE6下如何让PNG图片变透明


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-03   浏览: 300 ::
收藏到网摘: n/a

经常会有人问我IE6下如何让PNG图片变透明,实际上IE6浏览器无法显示透明的PNG图片,这也让许多网页设计师头疼的事,一些很好的效果页面就因为无法透明显示PNG图片,所以不得不应做成JPG。

也有许多方法试图解决这一问题,但现在只需要使用一个叫做“Unit PNG Fix”的JS文件就能完全搞定。

该JS的下载地址:http://labs.unitinteractive.com/unitpngfix.php


Unit PNG Fix的确是太出众了.

1.非常小的javascript文件:1kb!
2.解决因为IE的滤镜属性所带来的影响.
3.无论是img元素或background-image属性,都能有效果.
4.在加载页面之前就能自动运行.或者就一丁点的元素.
5.允许自动高宽.
6.使用起来超级简单.