About the choice of png and jpg

png can be a transparent background, so use
filter:drop-shadow(0 0 10rpx #fdbe51);
-webkit-filter:drop-shadow(0 0 10rpx #fdbe51);
there will be a projection effect;
jpg because the background cannot be transparent, So the projection effect will be around the entire picture.
However, the compatibility of this attribute is not friendly. As far as the current self-test is concerned, some Android phones are not compatible. This may cause performance problems, such as a feeling of freezing when doing animation effects.

Guess you like

Origin blog.csdn.net/m0_38038767/article/details/92086532