HBCMS更多的中文手册参考:

opacity Attribute | Opacity参数属性

DHTML文档教程

Sets or retrieves the opacity level that is applied to the content of an object.

dhtml语法

HTML
{ filter:progid:dximagetransform.microsoft.basicimage(
    opacity = fopacity ... ) ... }
scripting
object.filters.item(
    "dximagetransform.microsoft.basicimage").opacity [ = fopacity ]

dhtml可能的值

fOpacityFloating-point that specifies or receives the opacity level. The value can range from 0.0 to 1.0.
0.0Transparent.
1.0Default. Opaque.

The property is read/write. The property has a default value of 1.0.

DHTML代码范例

This sample exposes an image's background text using the Opacity property of the BasicImage filter.

<!-- This DIV is the target container for an image.  -->
<DIV ID="oDiv" STYLE="position:absolute; left:270px;" >
An Image - >
<IMG SRC='../common/earglobe.gif' />
</DIV>
<BUTTON onclick="oDiv.style.filter=
'progid:DXImageTransform.Microsoft.BasicImage(opacity=.2)'">
Opaque</BUTTON><BR/>
<BUTTON onclick="oDiv.style.filter=''">Clear Filter</BUTTON>
Click the Opaque button, and the text can be seen through the opaque DIV element.

Applies To

BasicImage