CSS Filter Gradient

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.