Generally, attributes are used to add shadows box-shadow
, but it can only add shadows to the box border, and cannot add shadows to the shape of the picture. At this time, you need to use the filter:drop-shadow()
filter function to create shadows on the content of the image.
Use box-shadow
attribute effects
Use filter:drop-shadow()
filter effects
Reference address: https://www.shejiku.net/pngtpyyxs.html
filter
There are other attribute values such as filter:blur(1px);
achieving Gaussian blur effects