Make your website black and white with CSS

Source: Internet
Author: User
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!

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.