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