Because it is truly outstanding.
1. Very small javascript file: 1kb!
2. Solve the impact caused by the filter properties of IE.
3. Whether it is the img element or the background-image attribute, it can have an effect.
4. It can run automatically before loading the page. Or just a little element.
5. Allow automatic height and width.
6. Super easy to use.
How to use:
1). Download the zip Then, add the following code to the head of your page. (Be sure to make sure the path is correct)
<!--[if lt IE 7]> |
2). Add clear.gif to your images folder. In the js file, modify the "var clear="images/clear.gif" path to store the file path of clear.gif for you.
3). Your entire project's png images are transparent. It's really simple, right? In just 2 steps, you can achieve the transparency effect of all PNGs on the entire site.
Some notes:
Unit PNG Fix can make background-repeat work under IE6, but this way of working is not like the normal repeat image repetition effect, but uses a stretching effect. But, it still works, so that's pretty good too. Because there is no solution that can realize the function of repeating images with transparent filters in IE6.