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
Preface When mysql modified the default database ...
The installation tutorial of mysql 8.0.11 winx64 ...
1. Introduction Whether the creation time of a fi...
1. Nginx installation steps 1.1 Official website ...
Table of contents Preface Descriptors Detailed ex...
Recently, Xiao Ming just bought a new Mac and wan...
1. What is a servlet 1.1. Explain in official wor...
Original link: https://vien.tech/article/138 Pref...
Preface Js is the most commonly used code manipul...
Preface When the WeChat mini program project invo...
Scenario simulation: The operation and maintenanc...
Yesterday I installed CentOS7 under VMware. I wan...
Single page application characteristics "Ass...
Sophie Hardach Clyde Quay Wharf 37 East Soapbox Rx...
This article shares the specific code of Element-...