The box-shadow
CSS property is used to add a shadow effect on the frame of the element. The values that can be set by this property include X-axis offset, Y-axis offset, shadow blur radius, shadow diffusion radius and shadow color, which are separated by multiple commas. box-shadow
describes one or more shadow effects in a comma-separated list. This property allows the borders of almost all elements to be shaded. If the element is set border-radius
at the same time, shadows will also have rounded corners. Order of multiple shadows in z-axis is the same rule as multiple text shadows
(the first shadow is at the top).
A case where two, three, or four numeric values are given.
<offset-x>
Andy
Offset on axis<offset-y>
。<blur-radius>
。<spread-radius>
。Optional, insert (shadow inward)inset
。
Optional, color value<color>
。
Initial value | none |
Applies to | All elements |
Inherited | no |
Animatable | no |
Temporarily not support values like inherit、initial、revert、unset、inset.
LCD tables only load in the browser