The drop-shadow() CSS function applies a drop shadow effect to the input image. Its result is a <filter-function>
.
drop-shadow(offset-x offset-y blur-radius spread-radius color)
相当于光穿过一个物体而形成的影子,如果该物体中间有透明色,光也会穿过透明的区域,形成的投影中间也会有光的颜色。
.effect-shadow {
filter: drop-shadow(5px 5px 10px black);
}
原文:https://www.cnblogs.com/coding8832/p/14504831.html