National day of mourning - Global dimmed website

State Department announcement: hold a national mourning April 4, mourning the death of the fight against SARS sacrifice of martyrs and compatriots. Therefore, on its Web site to add the following section of CSS code, the site will be able to global grayed out.

<style type="text/css">
    html {
        filter: grayscale(100%);
        -webkit-filter: grayscale(100%);
        -moz-filter: grayscale(100%);
        -ms-filter: grayscale(100%);
        -o-filter: grayscale(100%);
        filter: url("data:image/svg+xml;utf8,#grayscale");
        filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
        -webkit-filter: grayscale(1);
    }
</style>

PS: personal blog Original - National day of mourning - Global dimmed website

Guess you like

Origin www.cnblogs.com/feiffy/p/12629461.html