Home > Article > Web Front-end > Solution to the problem that opacity is not compatible with ie8
When I was testing the project today, I found that the opacity attribute was not compatible with ie8. Finally, I checked online and found that it can be solved by using the following attributes. I am very happy!
css: filter:Alpha(Opacity=50)/*This is a private property of IE, only applicable to IE*/
If you want to be compatible with major browsers, just use the following properties.
opacity: 0.5; /* Browsers that support CSS3 (mainstream)*/
-moz-opacity:0.5; /* Firefox private properties*/
filter: alpha(opacity=50); /* IE private property, only applicable to IE*/
The above is the detailed content of Solution to the problem that opacity is not compatible with ie8. For more information, please follow other related articles on the PHP Chinese website!