Mourning Day page color change black and white code

Source: Internet
Author: User

Web page color change black and white code
1, for the convenience of site mourning, special provide CSS filter code, to table mourning. The following is the full station CSS code.

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



or

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.

2, if the site does not use CSS, you can insert the page/template HTML code

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



3, some webmaster sites may use this CSS can not be effective because the site does not use the latest Web page 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 head &lt;html&gt; of the page with the above code.





4, there are some Web site Flash animation colors can not be controlled by the CSS filter, the Flash code in the &lt;object ...&gt; and &lt;/object&gt; inserted between:


<param value= "false" name= "menu"/>
<param value= "opaque" name= "wmode"/>



5, the simplest code to turn the page into Gray is to add
between the head

<style type= "Text/css" >
HTML {
Filter:gray
}
</style>

6, the General Discuz forum under your control CSS file to modify


CSS files in the forum bbs/templates/your style folder in the Css_common.htm


Other methods ditto








above methods can only be implemented in IE browser, Firefox temporarily did not find a way to know that can be added.

*{filter:gray; color:gray;}


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.