jQuery插件-pngFix 实现PNG图片在IE6中透明
各版本下载地址:
http://plugins.jquery.com/project/pngFix
This plugin will fix the missing PNG-Transparency in Windows Internet Explorer 5.5 & 6.
Features
unobtrusive script, simple to setup
works now also with CSS-Backgrounds (but scaling backgrounds) (我试用了似乎背景给拉伸了。)
works with PNG-Images within Links
TITLE, ALT, CLASS and STYLE-Attributes are considered
说明:
支持图片作为背景透明,图片透明,输入框input背时景透明。不需要透明图片.
使用方法在压缩包内index.html里介绍。照顾一下不懂E文的说明下
head区域加入jQuery最新包
<script type="text/javascript" src="scripts/jQuery.pack.js"></script>
及加入压缩包内的
<script type="text/javascript" src="scripts/jquery.pngFix.pack.js"></script>
jquery.pngFix.pack.js 这个是经过压缩过后的,不能修改,想自己修改的看下源文件jquery.pngFix.js
可以注释掉对自己没用的部分。
然后写入下面的来调用它。
<script type="text/javascript">
$(document).ready(function(){
$(document).pngFix();
});
</script>
中国开源社区 jQuery插件