The simplest code for turning pages into gray is to add
<Style type = "text/CSS">
HTML {
Filter: Gray
}
</Style>
First case:Copy the following code to the
<Style type = "text/CSS">
<! --
Body {
Filter: progid: DXImageTransform. Microsoft. basicimage (grayscale = 1 );
}
-->
</Style>
Case 2: If your website already has CSS, add
HTML {filter: progid: DXImageTransform. Microsoft. basicimage (grayscale = 1 );}
You can.
Third case:If your CSS already contains body {}, add
Filter: progid: DXImageTransform. Microsoft. basicimage (grayscale = 1 );
For example:
Body {
Font-size: 12px; margin: 0px; color: #000000; Background-color: # ffffff;
Filter: progid: DXImageTransform. Microsoft. basicimage (grayscale = 1 );}
Fourth case:Some webmasters may not be able to use this CSS because the website does not use the latest standard webpage protocol.
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
Replace <HTML> at the top of the webpage with the above Code.
Fifth case:Some website Flash Animation colors cannot be controlled by CSS filters. You can <object…> And </Object>:
<Param value = "false" name = "menu"/>
<Param value = "Opaque" name = "wmode"/>
Reproduced from www.jshtml.cn webpage special effect code site