This article mainly introduces the use of CSS to achieve a black and white Web site, has a certain reference value, now share to everyone, the need for friends can refer to
The following is the full-site CSS code.
HTML {filter:progid:DXImageTransform.Microsoft.BasicImage (grayscale=1);}
How to use: This code can change the page to black and white, add the code to the top of the CSS to achieve goose.
If the site does not use CSS, you can insert it between the HTML code of the page/template
<style> html{filter:progid:dximagetransform.microsoft.basicimage (grayscale=1);} </style>
Some sites may use this CSS not to take effect because the site is not using the latest standard protocol for Web pages
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
Replace the There are some Web site Flash animation colors can not be controlled by the CSS filter, in the Flash code <object ...> and </object> inserted between:
<param value= "false" name= "menu"/> <param value= "opaque" name= "wmode"/>
The simplest code that turns the page gray is the one between the head and the
<style type= "Text/css" > HTML {filter:gray} </style>
The above is the whole content of this article, I hope that everyone's learning has helped, more relevant content please pay attention to topic.alibabacloud.com!