How does CSS make the img picture set colorless and transparent

When learning css, sometimes we can use the mixed property of css to make the white background picture transparent when we encounter background photos. In this way, we define any background color under the picture, which is equivalent to changing the background color of the picture. Instead of changing the background in PS. Since it is defined by css, it will basically not affect performance.

mix-blend-mode: multiply is bottom stacked

In photoshop, the white background is removed by overlaying the bottom. Similarly, in css, we can remove the white background of the picture by overlaying the img, so that the picture is transparent.

Guess you like

Origin blog.csdn.net/qq_49491645/article/details/128952269