Background shadow box-shadow and filter: drop-shadow

Add shadow or border to element box

At this time, use box-shadow to set the element

.div{
	box-shadow:0 0 2px red;
}
If necessary, you can add a shadow border to a shape or icon

You need to use filter

.div{
 	filter:drop-shadow(0 0 2px red)
}

Guess you like

Origin blog.csdn.net/ithunzi/article/details/130408651