Shadow兼容性:IE4.0+
语法:
filter : progid:DXImageTransform.Microsoft.Shadow ( enabled=bEnabled , color=sColor , direction=iOffset , strength=iDistance )
属性:
enabled : 可选项。布尔值(Boolean)。设置或检索滤镜是否激活。true | false
true :默认值。滤镜激活。
false :滤镜被禁止。
color : 可选项。字符串(String)。设置或检索此滤镜作用的颜色值。
其格式为 #RRGGBB RR GG BB 为十六进制正整数。取值范围为 00 - FF RR 指定红色值, GG 指定绿色值, BB 指定蓝色值,参阅 #RRGGBB 颜色单位。
direction : 可选项。整数值(Integer)。设置或检索滤镜效果的运动偏移方向。默认单位为角度。0 | 45 | 90 | 135 | 180 | 225 | 270 | 315
小于 0 或大于 360 的值会自动转换为 0 - 360 之间的值。例如, -45 会转换为 315
0 :上。
45 :右上。
90 :下。
135 :右下。
180 :下。
225 :默认值。左下。
270 :左。
315 :左上。
strength : 可选项。整数值(Integer)。单位为像素( px )。设置或检索以对象为基准的在运动方向上的向外扩散距离。取值范围为 >=0 。默认值为 5
特性:
Enabled :可读写。布尔值(Boolean)。参阅 enabled 属性。
Color :可读写。字符串(String)。参阅 color 属性。
Direction :可读写。整数值(Integer)。参阅 direction 属性。
Strength :可读写。整数值(Integer)。参阅 strength 属性。
说明:
为对象内容建立阴影效果。
示例:
DIV.aFilter {filter:progid:DXImageTransform.Microsoft.Shadow(Strength=5,Direction=90);}
#oDIV {filter:progid:DXImageTransform.Microsoft.Shadow(Strength=10, Direction=45, color=blue);}