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
Routing configuration commands under Linux 1. Add...
Cluster Deployment Overview 172.22.12.20 172.22.1...
Table of contents 1. Learning Objectives 1.1. Mas...
Most of this article refers to other tutorials on...
Recently I saw the article Build your own React o...
If you want to install multiple tomcats, you must...
Table of contents Features of etcd There are thre...
1. Basic use of firewalld start up: systemctl sta...
1. Python installation 1. Create a folder. mkdir ...
JavaScript shows and hides pictures, for your ref...
DPlayer.js video player plug-in is easy to use Ma...
This article describes MySQL 8.0 user and role ma...
Ellipses appear when multi-line text overflows Th...
Table of contents Demo1 create_fragment SvelteCom...
EXPLAIN shows how MySQL uses indexes to process s...