Yesterday, the State Council decided to hold a national mourning event on April 21, 2010, in order to express the deep condolences of people of all ethnic groups across the country for the compatriots who died in the Yushu earthquake in Qinghai Province. Flags across the country and at embassies and consulates abroad will be flown at half-mast to mourn, and public entertainment activities will be stopped. Forums on all major websites have been changed to black and white to express condolences. Good VPS also wanted to make a forum gray. I thought I had to change the colors one by one in the background. After a tip from an enthusiastic friend (Guan Mo), it turned out that after adding CSS The filter can quickly turn gray. Farmer Good VPS learned something again, so I recorded it and gave it to friends who need it.
1. How to quickly gray out the DZ forum
First, we FTP to find the header.htm file of the currently used style, and add the following code between <head></head>:

<style>
html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }
</style>

Demo address: http://www.hb-world.cn
or another code, good VPS has not been tested, but it is said to be feasible, recorded here, also in the same location Add: html{filter:gray}
Note: This method can only be applied under IE, and it will be revealed under Firefox!
2. WordPress quickly turns gray
Find the style.CSS file of the theme and insert the following code:

body
{
FILTER: gray;
WORD-BREAK: break-all;
}

Since each theme is different, there is another method, which is to add: html{filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);}
to the CSS. You can try it. A good VPS can also be used by others. If there are any shortcomings in my method, I hope you can correct me.


Hong Kong/United States/Domestic High Speed ​​VPS

postid
18225

Leave a Reply