Css filter: alpha (opacity = 100, finishopacity = 0, style = 2)

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.