Home  >  Article  >  Web Front-end  >  Translucency problem under IE6_html/css_WEB-ITnose

Translucency problem under IE6_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:08:561105browse

080b747a20f9163200dd0a7d304ba388
.test {
position:absolute;
left:0;
top:0;
width:200px;
height:200px;
background-color:#00FF00;
filter:alpha(opacity=40);
opacity:0.4;
}
531ac245ce3e4fe3d50054a55f265927

6f8f4b9fa61f053d54f17a6f879e144d
410e38985a3c1e8b5219c50cd6add5b916b28748ea4df4d9c2150843fecfba68

The above code will work in browsers other than IE6 The browser can see the image through the div layer, but IE6 cannot. Why?


Reply to discussion (solution)

filter:alpha(opacity=90); -moz-opacity:0.9; opacity: 0.9;

Try this code

Reading and replying is a virtue. . .

PNG images have various problems under IE6. If you search for a JS file on the Internet, it can help you make the transparency effect of PNG display normally under IE6.

PNG translucency is not supported under IE6, but you can use filters to solve this problem.
The specific writing methods of filters are available online.

There are too many ways. . . Baidu, it is recommended to use a JS package (just a js package similar to jquery)

A css that allows ie6 to support png transparency

background:url(../images/soilbg.png);	_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src="images/soilbg.png"); 	_background:none; 

IE6 does not support transparency, this is the boss Difficult problem, usually you can consider working on image processing

I tried a lot of translucent codes, but none of them worked, so I had to change it to gif.

...are you using ietester? If so, please switch to the native IE6 to see

IE6 does not support pan transparency, but the GIF format is fine.

Why is there another png background? Your top code does not only have one bgcolor

...are you using ietester? If so, please change to native IE6
The system is win7 and IE6 cannot be installed, but this should be the problem you mentioned.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn