A few days ago, a friend who made a web design asked me this question: How to achieve a translucent effect by CSS, and support can be obtained on IE and Mozilla. Let me share my method to everyone.
The picture below shows a picture transparent effect implemented by CSS
This effect can work on IE and Mozilla browsers, the code is as follows
This.Filters.alpha.opacity = 100 "οnmοuseοut =" this.style.mozopacity = 0.5;
this.filters.alpha.opacity = 50>
In IE, you need to define transparency "Opacity" by "Filter", and in Mozilla can directly parse "Opacity", so if this effect is supported in both browsers, two settings are needed Add in. For IE settings: this.filters.alpha.opacity = 50 and settings for Mozilla: this.style.mozopacity = 0.5. You can use this line code to define it, you can only modify the image address. Figure effect.
Image with link: