1. alpha is used to set transparency. Its basic attributes are filter: alpha (opacity, finishopacity, style, startX, startY, finishX, finishY ).
Opacity indicates the transparency level. The value 0-100 indicates that the opacity is completely transparent, and the value indicates that the opacity is not transparent.
Finishopacity is used to set the transparency at the end to achieve the gradient effect. The value range is also 0-100.
2. style indicates the gradient type. 0 indicates no change. 1 indicates the line gradient, 2 indicates the radiation gradient, and 3 indicates the X gradient.
Alpha is used to set transparency. Let's take a look at its expression format:
Filter: alpha (opacity = opcity, finishopacity = finishopacity, style = style, startX = startX, startY = startY, finishX = finishX, finishY = finishY)
Wow, why is it so long. Yes, but these parameters have their own advantages.
Opacity indicates the transparency level. The optional values range from 0 to 100. 0 indicates full transparency, and indicates full Opacity.
The Style parameter specifies the shape features of the transparent area. 0 represents a uniform shape; 1 represents a linear shape; 2 represents a radial shape; 3 represents a rectangle.
Finishopacity is an option used to set the transparency at the end to achieve a gradient effect. Its value also ranges from 0 to 100.
StartX and StartY represent the starting coordinates of the gradient transparency effect, and finishX and finishY represent the ending coordinates of the gradient transparency effect.
Filter: alpha (opacity = 20);/* supported by IE */;
-Moz-opacity: 0.4;/* Firefox browser support */;
Opacity: 0.4;/* supports CSS3 browsers (FF 1.5 is also supported) */">
CSS opacity attributes
Opacity -- opacity
Value: <alphavalue> | inherit
<Alphavalue>: Transparency value (value range: [0.0, 1.0])
Inherit: Inheritance
Initial Value: 1 (not transparent)
Inheritance: Yes
Applicable to: All elements
URL: http://www.dreamdu.com/css/property_opacity/
CSS3 proposes opacity attributes