The PNG transparency of IE6 is an old problem. Recently, a friend asked me if I had the best plug-in to solve this problem. Although we know that we are using the dd_belatedpng plug-in, we will release it today.
Although I have posted a jquery PNG plug-in my blog, it does not support Background tile.
Dd_belatedpng uses Microsoft's VML language to redraw PNG images to achieve translucent effects. It also supports background-position and background-repeat attributes and supports pseudo classes. Is a good plug-in worthy of recommendation, and its usage is relatively simple.
Usage:
123456 |
<!--[if IE 6]><script src="DD_belatedPNG.js"></script><script> DD_belatedPNG.fix('.png_bg');</script><![endif]--> |
The reference function is dd_belatedpng.fix (). Change. png_bg in brackets to your CSS selector name.
Id selector example:
1 |
DD_belatedPNG.fix('#png'); |
Pseudo-Class Example:
1 |
DD_belatedPNG.fix('.png a:hover,.png a:focus'); |
IMG Tag example:
1 |
DD_belatedPNG.fix('img'); |
You can simply add multiple commas. For example:
1 |
DD_belatedPNG.fix('.png_bg,#png,.png a:hover,.png a:focus,img'); |
JS file:
0.0.8a.js (uncompressed Version)
0.0.8a-min. js (compressed version)
Official Website: dd_belatedpng