Filter: progid: DXImageTransform. Microsoft. Gradient for CSS

Source: Internet
Author: User
Filter: progid: DXImageTransform. Microsoft. Gradient use

Syntax:

Filter: progid: DXImageTransform. Microsoft. gradient (Enabled = benabled, startcolorstr = iwidth, endcolorstr = iwidth)

Attribute:

Enabled: Optional. Boolean ). Set or retrieve whether the filter is activated. True | false

True: default value. Filter activation.

False: the filter is disabled.

 

Startcolorstr: Optional. String ). Set or retrieve the start color and transparency of the color gradient.

The format is # 20.rggbb. AA, RR, GG, and 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 # rrggbb color unit. AA specifies the transparency. 00 is completely transparent. FF is completely opaque. The value that exceeds the value range is restored to the default value.

The value range is # ff000000-# ffffff. The default value is # ff0000ff. Opaque blue.

Endcolorstr: Optional. String ). Set or retrieve the end color and transparency of the color gradient. See startcolorstr attributes. The default value is # ff000000. Opaque black.

Features:

Enabled: read/write. Boolean ). See enabled attributes.

Gradienttype: read/write. Integer ). Set or retrieve the direction of the color gradient. 1 | 0

1: default value. Horizontal gradient.

0: vertical gradient.

Startcolorstr: read/write. String ). See startcolorstr attributes.

Startcolor: read/write. Integer ). Set or retrieve the start color of the color gradient. Value Range: 0-4294967295. 0 is transparent. 4294967295 is not transparent white.

Endcolorstr: read/write. String ). Set or retrieve the end color and transparency of the color gradient. See startcolorstr attributes. The default value is # ff000000. Opaque black.

Endcolor: read/write. Integer ). Set or retrieve the ending color of the color gradient. Value Range: 0-4294967295. 0 is transparent. 4294967295 is not transparent white. When this feature is used in a script, it can also be in hexadecimal format: 0 x1_rggbb.

Note:

Display the custom color layer between the background and content of the object.

When this effect is displayed through a transformation, the procedural initialization of the text above the color layer of the gradient volume is transparent. After the color gradient is implemented, the text color is updated with the defined value.

Example:

# Iddiv {position: absolute; left: 140px; Height: 400; width: 400; filter: progid: DXImageTransform. microsoft. gradient (Enabled = 'false', startcolorstr = # 550000ff, endcolorstr = #55ffff00 );}

# Iddiv {position: absolute; left: 140px; Height: 400; width: 400; filter: progid: DXImageTransform. Microsoft. gradient ();}

Usage

<Table border = 1 width = 100%>

<Tr>

<TD style = "filter: progid: DXImageTransform. Microsoft. gradient (gradienttype = 1, startcolorstr = '# ffff', endcolorstr =' # ff0000')"> </TD>

</Tr>

</Table>

Too many items ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------- Mourning day, all the website pages are black and white, use the following filter !!

Zookeeper -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

CSS Filter codes are provided to facilitate site mourning. The following is the full-site CSS code.

HTML {filter: progid: DXImageTransform. Microsoft. basicimage (grayscale = 1 );}

Usage: This code changes the webpage to black and white. You can add the code to the top of CSS to implement the installation. It is recommended that the Chinese webmaster be moved up. Mourn for the victims of the earthquake.

If the website does not use CSS, you can insert the following between the HTML code of the webpage/template:



HTML {filter: progid: DXImageTransform. Microsoft. basicimage (grayscale = 1 );}

<>

Some webmasters may not be able to use this CSS because the website does not use the latest standard webpage protocol.

Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>

Http://www.w3.org/1999/xhtml>

Replace the header of the Web page with the above Code.

Some website Flash Animation colors cannot be controlled by CSS filters, and can be inserted between flash codes:


The simplest code for turning pages into gray is to add

HTML {

Filter: Gray

}

<>

The general discuz forum is modified under your control CSS file

/Images/Header/header.css this file, click the source code to see reference http://bbs.admin5.com

In addition, the red title cannot be used on all topics and theme pictures in the news of mourning day or death.

Related Article

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.