Write to the css file Copy code The code is as follows:01.html{ filter: grayscale(100%); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); -webkit-filter: grayscale(1);} In fact, it is to add a gray filter |
<<: Detailed explanation of the use of CSS3 rgb and rgba (transparent color)
>>: Examples of some usage tips for META tags in HTML
In Dockerfile, run, cmd, and entrypoint can all b...
Table of contents 1. Database Engine 1.1 View dat...
background The amount of new data in the business...
Commonly used commands for Linux partitions: fdis...
This blog is a work note environment: nginx versi...
1.service command The service command actually go...
React is an open-source JavaScript library used b...
The isnull() function cannot be used as a substit...
1. Preparation before installation Check the data...
virtualenv is a tool for creating isolated Python...
The META tag is an auxiliary tag in the head area...
First look at the effect: html <a href="#...
1. Review Vue responsive usage Vue responsivenes...
Table of contents 1. MySQL replication process 2....
The default_server directive of nginx can define ...