Design CSS box-shadows with a live preview in your browser — tweak offset, blur, spread and color.
box-shadow: [inset] <offset-x> <offset-y> <blur> <spread> <color>。inset 关键字把外阴影变为内阴影;多层用逗号分隔,先声明的在上层。| Item | Formula / Note | Source / Standard |
|---|---|---|
| Syntax | offset-x, offset-y, blur, spread and color with optional inset | CSS Backgrounds and Borders Level 3 |
| Blur radius | a larger radius softens the edge; zero yields a hard edge | CSS Backgrounds and Borders Level 3 |
| Multiple shadows | comma-separated layers paint with the first on top | CSS Backgrounds and Borders Level 3 |