Dec 18
目的很简单,用于修复IE6对background-image中的24-bit PNG支持问题(无法透明)。
使用也很简单:
<!--[if IE 6]>
<script src="DD_belatedPNG.js"></script>
<script>
DD_belatedPNG.fix('.png_bg'); /* EXAMPLE */
/* string argument can be any CSS selector */
/* using .png_bg example is unnecessary */
/* change it to what suits you! */
</script>
<![endif]-->
主要原理是使用VML,因为VML中很好的实现了对PNG格式的支持。
已知问题:
- 不能用于body上的CSS样式中含有PNG图片
- <TD>和<TR>中的表现也不是很好
- 没有实现
background-position: fixed;
Link: DD_belatedPNG
Download: uncompressed (~9Kb ) … compressed (~5Kb)
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.


Recent Comments