How to make a webpage black and white
Nov 22, 2017 pm 03:38 PMHow 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!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to send web pages to desktop as shortcut in Edge browser?

Develop web voting system using JavaScript

Possible reasons why the network connection is normal but the browser cannot access the web page

What to do if the web page cannot be accessed

How to set up web page automatic refresh

What to do if the webpage cannot be opened

What should I do if the images on the webpage cannot be loaded? 6 solutions
