Let the website Gray Code special effects, 5.12 dedicated to commemorate.

Source: Internet
Author: User
Tags filter
5.12 A very sad day, many webmasters want to use their own practical action to express the earthquake mourning day prayers and blessings, here to provide a simple line of code to achieve ...

In 512 special days, many webmaster want to use their own practical action to express the earthquake mourning day prayers and blessings, the following provides a simple do not modify any site source code on the black and white method.

1, has the CSS style website black and white Goose style setting Method: Will add the following code to the website CSS style topmost.

HTML {filter:progid:DXImageTransform.Microsoft.BasicImage (grayscale=1);}

Please note that the above code does not wrap.

2, does not enable the CSS style website black and white Goose style setting method One: Inserts the HTML code and between the page or the template

<style>
Html{filter:progid:dximagetransform.microsoft.basicimage (grayscale=1);}
</style>

Note that the above code is 3 lines and the middle line is not wrapped.

This makes it easy to make the site gray.

The effect chart is as follows:



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.