IE6 does not support transparent PNG images with gray background. ie6 does not support png background.
Solution:
1. Filter
The special filter effect in IE browser, and the png file must be used as the background image.
Filter: progid: DXImageTransform. Microsoft. AlphaImageLoader (enabled = true, src = string, sizingMethod) Whether to enable the Filter effect. How to display the background image
Image: Zoom In or out the box to display the entire background Image.
Crop: Crop an image to fit the object size.
Scale: Scale the image to fit the object size.
# Box {// for IE
Width: 152px;
Height: 152px;
Filter: progid: DXImageTransform. Microsoft. AlphaImageLoader (src = "PNG image URL", sizingMethod = image)
}
Html> body # box {// for non-IE
Background: url (images/circle.png );
}
1. JS + transparent gif
Reference external JS files (only for images in png files, invalid for background)
<Script type = "text/javascript" src = ""> </script>
2. DD_belatedPNG
The first two do not support background-position and background-repeat.
<! -- [If IE6]>
<Script type = "text/javascript" src = "javascript/DD_belatedPNG_0.0.8a-min.js">
</Script>
<Script>
DD_belatedPNG.fix ('css selector, application type ');
</Script>
<! -- [Endif] -->
For example, fix ('# box, img'), fix ('# box, background ').
When solution 1 is used to add a link to a background image, the link cannot be triggered in non-blank areas of the background image in ie6. solution: add the position: relative; attribute to the link.