今天解决png图片在IE6下的背景透明问题,找到了一个好方法。之前的解决方案会造成错位,使页面变形。现把这个方法公布如下,本人亲测可以正常使用,如果你在使用中出现问题,请看实例中的说明(英文不精的童鞋可以用谷歌翻译哟)。
<!--[if lt IE 7]>
<script type="text/javascript" src="images/iepngfix_tilebg.js"></script>
<style type="text/css">
img, div, input { behavior: url("images/iepngfix.htc") }
</style>
在页面中head部分加上如上代码,<!--[if lt IE 7]>是为了让IE6以下浏览器执行,其他浏览器不执行,因为IE6以上浏览器都支持png背景透明。
然后在images目录下放置如下三个文件:
点击此处下载ie6 png 透明的解决方法(本地空间下载被禁止……)
982196 719618Simply wanna remark which you have a extremely nice internet internet site , I enjoy the layout it in fact stands out. 172104
2018年8月20日 04:3610851 751332I like this site quite considerably, Its a quite nice position to read and receive information . 869284
2018年8月15日 20:53万恶IE6还在继续啊
2015年5月22日 07:23有些无聊的网吧,就是IE6……我都疯了
2015年5月22日 12:15额,谁还用IE6呵,IE8都没人用了
2015年2月28日 14:09IE11
2015年2月28日 14:11我用chrome
2015年2月28日 14:13chrome+firefox+IE11
2015年2月28日 14:27同上
2015年2月28日 14:37看不懂完全看不懂……
2014年8月5日 13:32