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
Table of contents Get the time in the past week G...
In Linux systems, especially server systems, it i...
Install linux7.2 Internet access configuration on...
Before we use JSX to build a component system, le...
This article shares the installation and activati...
Recently I was looking at how Docker allows conta...
nbsp   no-break space = non-breaking spa...
This article shares the specific code for JavaScr...
This article shares the specific code of JavaScri...
Today I saw a blog post about input events, and o...
MySQL Performance Optimization MySQL performance ...
ssh-secure shell, provides secure remote login. W...
This article shares the installation and configur...
The effect is as follows: Example 1 Example 2: Ta...