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 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:
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!