Taobao's Code
Copy Code code as follows:
HTML {
Filter:progid:DXImageTransform.Microsoft.BasicImage (grayscale=1);
-webkit-filter:grayscale (1);
}
CSS3 greyscale Filter Implementation
Test code as follows:
Copy Code code as follows:
. Gray {
-webkit-filter:grayscale (100%);
-moz-filter:grayscale (100%);
-ms-filter:grayscale (100%);
-o-filter:grayscale (100%);
Filter:grayscale (100%);
Filter:gray;
}
HTML {filter:progid:DXImageTransform.Microsoft.BasicImage (grayscale=1);}
Usage: This code can change the page to black and white, add code to the top of the CSS can achieve goose. Suggested the national stationmaster to move up. Mourn for the people who died in the earthquake.
If your Web site does not use CSS, you can insert it between the HTML code
<style>
Html{filter:progid:dximagetransform.microsoft.basicimage (grayscale=1);}
</style>
There are some webmaster sites that may use this CSS not to take effect because the website does not use the latest Web standard protocol
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
Please replace the top
There are some Web site Flash animation colors can not be controlled by CSS filters, the Flash code <object ...> and </object> inserted between:
<param value= "false" name= "menu"/>
<param value= "opaque" name= "wmode"/>
The simplest code to turn the page into Gray is to add <style type= "Text/css" between the head. >
HTML {
Filter:gray
}
</style>
The General Discuz Forum modifies/images/header/header.css this file under your control CSS file