Get the App
SLTechnology News&Howtos  ›  Development  › 

How to turn a web page into black and white and be compatible with Google, Firefox, ie and other browsers

Shulou Source: shulou.com Published: 2022-06-03 06:32:21 11月16日 Update

This article is about how to turn a web page into black and white and be compatible with Google, Firefox, ie and other browsers. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Write to the css file

The code is as follows:

01.html {filter: grayscale;-webkit-filter: grayscale;-moz-filter: grayscale;-ms-filter: grayscale;-o-filter: grayscale; filter: url ("data:image/svg+xml;utf8,#grayscale"); filter:progid:DXImageTransform.Microsoft.BasicImage (grayscale=1);-webkit-filter: grayscale (1);}

In fact, it is to add a gray filter.

Thank you for reading! This is the end of this article on "how to make a web page black and white and compatible with Google, Firefox, ie and other browsers". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Tags: Browser Firefox web page black and white browsing content more articles good practical that is code files articles gray see knowledge filters references help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information MariaDB Apple Huawei Linux