Opacity properties of CSS

Source: Internet
Author: User

The definition and usage of the Opacity property:

Retrieves or sets the opacity of an object.

IE browsers that do not yet support the Opacity property can use the IE private Filter properties to achieve the same effect as opacity.

The corresponding script attribute is opacity.

Syntax structure:

Opacity:<number>

Value:

<NUMBER>: Specifies the opacity of an object using floating-point numbers.

The value is constrained within the [0.0-1.0] range, and if the range is exceeded, the result of the calculation is truncated to the closest value.

Browser support:

(1). This property is supported by IE browser.

(2). Firefox lee Blue Flag supports this property.

(3). This property is supported by Google Chrome.

(4). Opera browser supports this property.

Note: IE6-IE8 does not support this property.

Inheritance :

No inheritance.

Instance code:

<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8"><Metaname= "Author"content= "http://www.51texiao.cn/" /><title>Ant Tribe</title><styletype= "Text/css">. MyTest{width:200px;Height:100px;Background-color:#333;Opacity:0.1;Color: White;}</style></Head><Body><Divclass= "MyTest">Ant Tribe</Div></Body></HTML>

The original address is: http://www.51texiao.cn/div_cssjiaocheng/2015/0606/3419.html

The most original address is: http://www.softwhy.com/forum.php?mod=viewthread&tid=1338

Opacity properties of CSS

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.