CSS transparent attributes and css
. Transparent_class {filter: alpha (opacity = 50);-moz-opacity: 0.5;-khtml-opacity: 0.5; opacity: 0.5 ;}
The preceding attributes are as follows:
Opacity: 0.5; this is the most important because it is the CSS standard. This attribute supports firefox, Safari, and Opera.
Filter: alpha (opacity = 50); this is set for IE6, the value can be 0-100, and the other three 0 to 1.
-Moz-opacity: 0.5; To support earlier Mozilla browsers.
-Khtml-opacity: 0.5; to support some older versions of Safari.
Css transparent attribute Solution
Compatibility:
First compatible with IE
The second is compatible with Firefox, Mozilla, and Safari.
Third compatible with Chrome/CSS2
CSS background color transparency
{
Filter: alpha (opacity = 50 );
-Moz-opacity: 0.5;
-Khtml-opacity: 0.5;
Opacity: 0.5;
}
Compatible with most mainstream browsers: alpha (opacity = 50); in IE, it is equivalent to the existence of scripts.