shadowOpacity Attribute | ShadowOpacity参数属性
| DHTML文档教程 |
Sets or retrieves the opacity level of a shadow created by the blur filter.
dhtml语法
html | { filter:progid:dximagetransform.microsoft. blur( shadowopacity = fopacity ... ) ... } |
---|
scripting | object. filters. item( "dximagetransform.microsoft. blur"). shadowopacity [ = fopacity ] |
---|
dhtml可能的值
fOpacity | Floating-point that
specifies or receives the opacity level. The value can range from 0.0 (fully transparent) to 1.0 (fully opaque).0.0 | Transparent. | 0.75 | Default. | 1.0 | Opaque. |
|
The property is read/write.
The property has a default value of
0.75.
Remarks
This property only applies if the makeshadow property is set to true.
when set to greater than 1.0 or less than 0.0, this property defaults to 0.75.
DHTML代码范例
This example places a shadow under the content of a DIV object. The DIV object is duplicated. The first DIV object displays the shadow, while the second is unfiltered.
<DIV ID="oDiv" STYLE="position:absolute; left:70px; filter:
progid:DXImageTransform.Microsoft.blur(pixelradius=3.0, makeshadow='true', ShadowOpacity=1.0)" >
An image - >
<IMG SRC='../common/earglobe.gif' />
</DIV>
<DIV ID="oDiv" STYLE="position:absolute; left:70px; " >
An image - >
<IMG SRC='../common/earglobe.gif' />
</DIV>
Applies To
更多语法参考
pixelradius, scripting filters, Filter Design Considerations