DevToolBox免费
博客

CSS Box Shadow 生成器

可视化设计 CSS 盒子阴影,支持偏移、模糊、扩展、颜色和内阴影控制。

Presets
Shadow Layers
Horizontal Offset5px
Vertical Offset5px
Blur Radius15px
Spread Radius0px
Shadow Color
Opacity0.30
CSS Output
box-shadow: 5px 5px 15px 0px rgba(0,0,0,0.3);

What is CSS Box Shadow Generator?

The CSS box-shadow property adds shadow effects around elements. This visual generator lets you adjust offset, blur, spread, color, and inset with real-time preview.

𝕏 Twitterin LinkedIn

评价此工具

4.8 / 5 · 203 人评价

保持更新

获取每周开发技巧和新工具通知。

无垃圾邮件,随时退订。

Enjoy these free tools?

Buy Me a Coffee

How to Use

  1. Adjust shadow offset
  2. Set blur and spread radius
  3. Choose shadow color
  4. Toggle inset for inner shadows
  5. Copy the CSS code

Use Cases

  • Card elevation effects
  • Button hover states
  • Modal shadows
  • Navigation bar shadows

FAQ

What is CSS box-shadow?
box-shadow adds shadow effects around an element's frame with offset, blur, spread, and color values.
Can I add multiple shadows?
Yes, CSS supports multiple box shadows. This tool lets you add up to 4 layers.
What is inset shadow?
An inset shadow appears inside the element, creating a pressed effect.