Home >Web Front-end >HTML Tutorial >How to make a webpage black and white

How to make a webpage black and white

php中世界最好的语言
php中世界最好的语言Original
2017-11-22 15:38:4915246browse

How to make the web page black and white? In some special periods, web pages have to remove color and only display black and white. So how do you make your web page black and white? Today I bring you such a tutorial.

To turn a web page into black and white, you need this piece of code.

<style> 
    html { 
        -webkit-filter: grayscale(100%); 
        -moz-filter: grayscale(100%); 
        -ms-filter: grayscale(100%); 
        -o-filter: grayscale(100%); 
        filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);  
        _filter:none; 
    } 
</style>

Put the code before 16838e62eb92711b15578f7228e548e3 to make the corresponding web page black and gray!

This is how to convert a webpage to black and white.

Friends in need can save it. For more exciting content, please continue to pay attention to other updates of this site.

Related reading:

How to use label tags in html


HTML title tag element How to modify


Why the HTML web page is garbled and the solution

The above is the detailed content of How to make a webpage black and white. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn