Css sets the element Transparency Code instance and css element transparency instance.
Sample Code for setting element transparency in css:
This topic describes how to set the transparency of an element. Currently, many effects are available. The following describes how to achieve this effect.
W3c provides a standard attribute opacity for setting transparency. The value of this attribute is between 0 and 1, and 0 is completely transparent. 1 is completely opaque.
The Code is as follows:
<! DOCTYPE html>
The above code can be executed perfectly in Google and Firefox browsers, but it is not successful in IE8 and IE8 browsers, because they do not support the opacity attribute.
The code is modified as follows:
<! DOCTYPE html>
The above Code meets our requirements, that is, the filter: alpha (opacity = 30) is added. This IE browser supports it. Note that the opacity value in the brackets is 0, 0 indicates full transparency, and 100 indicates full opacity.
The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 12918.
For more information, see: http://www.softwhy.com/divcss/