How html sets div Shadows
This article mainly introduces "html how to set div shadow" related knowledge, editor through the actual case to show you the operation process, the operation method is simple and fast, practical, I hope that this "html how to set div shadow" article can help you solve the problem.
Sample code:
Shadow effect div {position: absolute;left: 300pxposition top: 300pxscape width: 300pxposition height: 300pxpolitical box shadow: 0px 0px 100px 10PX black;border: 1px solid black;}
The effect is as follows:
Box-shadow adds one or more shadows to the box. This attribute is a comma-separated list of shadows, each specified by 2-4 length values, optional color values, and optional inset keywords. The value for omitting length is 0.
Syntax:
Box-shadow: h-shadow v-shadow blur spread color inset
Attribute value:
H-shadow is required. The position of the horizontal shadow. Negative values are allowed.
V-shadow is required. The position of the vertical shadow. Negative values are allowed.
Blur is optional. Blur the distance.
Spread is optional. The size of the shadow.
Color is optional. The color of the shadow.
Inset is optional. Change the outer shadow (outset) to the inner shadow.
This is the end of the introduction to "how html sets div Shadows". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.