This method uses the Next is the code <p><strong>Original Icon</strong></p> <i class="icon icon-del"></i> <p><strong>Icons that can change color</strong></p> <i class="icon"><i class="icon icon-del"></i></i> .icon { display: inline-block; width: 20px; height: 20px; overflow: hidden; } .icon-del { background: url(delete.png) no-repeat center; } .icon > .icon { position: relative; left: -20px; border-right: 20px solid transparent; -webkit-filter: drop-shadow(#0033FF 20px 0); filter: drop-shadow(#0033FF 20px 0); } Note that one of the key points
Since we used Summarize This is the end of this article about changing the color of PNG images through CSS3 filter. For more relevant content about changing the color of PNG images with CSS, please search previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! |
<<: HTML background color gradient achieved through CSS
>>: Vue implements bottom query function
For a newly created website, take ASP.NET MVC5 as...
I finally finished the project at hand, and the m...
Related articles: Beginners learn some HTML tags ...
1. Introduction As we all know, in the applicatio...
This article example shares the specific code of ...
Shell Script #!/bin/sh # Current directory CURREN...
/****************** * Linux kernel time managemen...
Preface Previously, static IPs assigned using pip...
MySQL 8 new features: My personal opinion on MySQ...
Table of contents Abstraction and reuse Serial Se...
Preface I believe everyone has used the top comma...
The so-called sliding door technology means that ...
Preface We have already installed Docker and have...
Today, I will record how to install MySQL 8.0.18 ...
Tomcat's default log uses java.util.logging, ...