The MS station is really good, there are a lot of things to refer to
This gradient is actually a CSS filter. Introduce parameters
Filter: progid: DxImageTransform.microsoft.gradient (enabled =
Benabled
STARTCOLORSTR =
iWidth
, EndColorstr =
iWidth
)
Attributes:
ENABLED: Options. Boolean. Set or retrieve if the filter is activated. True | False
True: The default value. Filter activation. FALSE: The filter is prohibited. STARTCOLORSTR: Options. String. Set or retrieve the start color and transparency of color gradient. The format is #aarrggbb. AA, RR, GG, BB are hexadecimal positive integers. The value range is 00 - ff. RR Specifies the red value, GG specifies the green value, BB specifies the blue value, see #RRGBB color unit. AA specifies the transparency. 00 is completely transparent. FF is completely opaque. The value exceeding the range of value will be restored to the default. The value range is # ff000000 - #fffffff. The default is # ff0000ff. Opaque blue. EndColorstr: Options. String. Set or retrieve the end color and transparency of color gradient. See the StartColorstr property. The default is # ff000000. Opaque black.
characteristic:
Enabled: You can read it. Boolean. See the enabled attribute. GradientType: You can read it. Integer. Set or retrieve the direction of color gradient. 1 | 0
1: The default value. Level gradient. 0: Vertical gradient. STARTCOLORSTR: Readable to read. String. See the StartColorstr property. STARTCOLOR: Readable to write. Integer. Set or retrieve the start color of the color gradient. The value range is 0 - 4294967295. 0 is transparent. 4294967295 is opaque white. EndColorstr: Ready to write. String. Set or retrieve the end color and transparency of color gradient. See the StartColorstr property. The default is # ff000000. Opaque black. EndColor: Ready to be read. Integer. Set or retrieve the end color of the color gradient. The value range is 0 - 4294967295. 0 is transparent. 4294967295 is opaque white. When this feature is used in the script, you can also use a hexadecimal format: 0xAarRGGBB.