How to make a webpage black and white

php中世界最好的语言
Release: 2017-11-22 15:38:49
Original
15202 people have browsed it

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>
Copy after login

Put the code before head> 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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template