6

The Three Musketeers of CSS Shadow Effects: box-shadow, text-shadow, drop-shadow

🍃 If you want the outline of the box to have a shadow effect, use box-shadow
🍃 If you want the outline of the text to have a shadow effect, use text-shadow
🍃 If you want the outline of the non-transparent part of the PNG image to have a shadow effect, use the filter: drop-shadow()

Of course, if you want to generate the mapped shadow color according to the color of the element itself, you can use the blur(), brightness(), and opacity() of the filter to match the color to generate the shadow effect.


沉静地闪光
11.2k 声望3.1k 粉丝

值得做的事情,值得现在就去做并一直坚持做;