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
Let's look at the case first. Use vue+swiper ...
Solution to mysql not closing: Right-click on the...
The most popular tag is IE8 Browser vendors are sc...
Table of contents 1. What is a directive? Some co...
Introduction to HTML HyperText Markup Language: H...
React is a JavaScript library for building user i...
1. Video tag Supports automatic playback in Firef...
Table of contents 1. Joint index description 2. C...
First look at the example code: #/bin/bash cal da...
Table of contents Preface 1. Check the file disk ...
MySQL deduplication methods 【Beginner】There are v...
Preface This article mainly introduces the releva...
Introduction to Positioning in CSS position attri...
In more and more websites, the use of XHTML is rep...
Table of contents Class Component Functional Comp...