createtime--2017 December 26 11:09:14
Author:marydon
Gradient of IE filter effect
Role:
Used to set the gradient background color
Conditions of Use:
IE8 and the following versions do not support property values for attribute Background-image linear-gradient (), you can use gradient instead
Grammar:
Filter:progid:DXImageTransform.Microsoft.Gradient (Enabled=benabled,startcolorstr=iwidth,endcolorstr=iwidth)
First parameter: Enabled
Purpose: Sets or retrieves whether the filter is active.
Corresponding parameter value: Boolean value (Boolean), True|false
Necessity and Default: The default value is true, optional
Second parameter: Startcolorstr|startcolor
Purpose: Sets or retrieves the start color and transparency of the color gradient.
StartColorStr
Corresponds to a parameter value: A string, in the form of a #AARRGGBB with a value range of #00000000-#FFFFFFFF
Parameter values constitute a description:
AA, RR, GG, BB are 16 positive integers, the corresponding value range is 00-ff;
AA Specifies the transparency, 00 is completely transparent, FF is completely opaque, values beyond the range of values will be restored to the default value;
RR specifies a red value, GG specifies a green value, BB specifies a blue value;
Necessity and Default values: The default is #FF0000FF (opaque blue), optional
StartColor
Corresponding parameter values:
Integer value (integer) with a value range of 0-4294967295. (0 is transparent, 4294967295 is opaque white);
When you use this attribute in a script, you can also use the hexadecimal format: 0xAARRGGBB.
Second parameter: Endcolorstr|endcolor
Purpose: Sets or retrieves the end color and transparency of the color gradient.
EndColorStr
Corresponding parameter value: Same as second parameter
Parameter value composition Description: Same as second parameter
Necessity and Default values: Default is #FF000000 (opaque black), optional
Third parameter: GradientType
Purpose: Sets or retrieves the direction of the color gradient.
Corresponding parameter values: integer value (integers), 1 | 0
Parameter Value Description:
1: Horizontal gradient;
0: Vertical gradient.
Necessity and Default value: Default value is 1, option is available
EndColor
Same as the second parameter
CSS Filter Gradient