CSS gradient implementation method of IE browser engine
IE does not support CSS gradients, but it provides a gradient filter that can be used to achieve a simple gradient effect.
Basic syntax
The parameters of this parameter are described as follows:
Enabled: Sets or retrieves whether the filter is active. An optional Boolean value that includes true and false, with a default value of True, indicating the activation state.
StartColor: Sets or retrieves the start color and transparency of a color gradient. Optional, formatted as #aarrggbb. AA,RR,GG,BB is a 16-binary positive integer with a value range of 00~ff. RR specifies a red value, GG specifies a green value, BB specifies a blue value, AA specifies the transparency, 00 is completely transparent, and FF is completely opaque. Values that exceed the range of values will be reverted to the default values. The value range is #ff0000~ #FFFFFF, and the default value is #ff0000ff, which is opaque blue.
ENDCOLORSTR: Sets or retrieves the end color and transparency of a color gradient. The default value is #ff000000, which is opaque black.
IE Gradient Filter Combat application
Using the IE filter to design the gradient background, and then the background image to design graphics and illustrations effect.
Code:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">