Summarize and share CSS code for color Web pages to black and white

Source: Internet
Author: User
Many times, the site needs to speak color into black and white, such as in the Wenchuan earthquake, in order to express condolences, many sites are color programming black and white, then, we will summarize how to change the color of the Web page into black and white method:

1. Turn the Web site, Web page interface into black and white gray tone CSS Code

Not much to say, please look at the code, the website or Web page into black and white

# # #网页黑白代码外部样式
* * Write to a. css file using *

2.4 kinds of Code of the website turn black and white gray detailed explanation

2008.5.12 Sichuan Wenchuan earthquake, took away a lot of life, it is regrettable, in order to express their deep condolences to the victims, the State Council decided May 19, 2008 to 21st as the national day of mourning. In the meantime, many websites have changed their style to "black, white, grey" in order to express their condolences to their fellow victims. Advised the national webmaster to move up, for the victims of the earthquake in mourning

3. Use CSS to convert images into black and white

The development of the Times, now, CSS3, we also began to see the "Black and white effect" large-scale application of the actual possibility, the next introduction CSS3 greyscale filter implementation, interested friends can understand that may have long known, like Wenchuan this bad Day website all gray in IE can be easily implemented (Filter:gray;), however, at the time, other browsers were non-solvable. However, the development of the Times, now, the gradual progress of CSS3, we also began to see the "Black and white effect" large-scale application of the actual possibility.

4. Color Web page black white CSS Code

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: 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.