Because it is indeed very outstanding.
1. Very small javascript file: 1kb!
2. Solve the impact caused by IE's filter attributes.
3. Whether it is the img element or the background-image attribute, it can have effects.
4. It can be run automatically before loading the page. Or just a little bit of element.
5. Allow automatic height and width.
6. It's super easy to use.
How to use:
1). Download the zip and then add the following code to the head of your page. (Be sure to make sure the path is correct)
|
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 achieve transparent effects. It's really very simple, right? In just 2 steps, the transparent effect of all pngs on the entire site is achieved.
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 the stretching effect. However, it still works, so it's very good too. Because no solution can realize the function of repeating pictures under ie6.