pixelRadius Attribute | PixelRadius参数属性
| DHTML文档教程 |
Sets or retrieves the radius of the area of opaque content around a pixel that is affected by the blur filter.
dhtml语法
html | { filter:progid:dximagetransform.microsoft. blur( pixelradius = flradius ... ) ... } |
---|
scripting | object. filters. item( "dximagetransform.microsoft. blur"). pixelradius [ = flradius ] |
---|
dhtml可能的值
flRadius | Floating-point that
specifies or receives the following possible values.1.0 - 100.0 | Radius, in pixels, of the area affected by blurring. | 2.0 | Default. |
|
The property is read/write.
The property has a default value of
2.0.
Remarks
When the PixelRadius is set to a value between 0.0 to 1.0 pixels, the filter is ignored. When it is set to a value above 100 pixels, the property the property defaults to 2.0 pixels.
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
更多语法参考
shadowopacity, makeshadow, scripting filters, Filter Design Considerations