Màu sắc & Thiết kế
Trình chỉnh sửa Box Shadow nâng cao
Stack multiple shadows with live preview.
Layer 1
Layer 2
.card {
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.12), 0px 16px 32px -8px rgba(0, 0, 0, 0.20);
}Ghi chú của biên tập viên
Understanding · Real shadows aren't a single layer.
Chương phân tích chuyên sâu này hiện chỉ có sẵn bằng tiếng Anh. Công cụ chuyển đổi ở trên hoạt động bằng ngôn ngữ của bạn; bài viết giải thích dài chưa được dịch.
Các câu hỏi thường gặp
Quick answers.
›How do I create a realistic shadow?
Layering multiple shadows is key. Start with a tight, dark shadow for the base and stack a second, softer shadow with a larger blur and lower opacity for the ambient glow.
›What is the difference between blur and spread?
Blur softens the edges of the shadow using a Gaussian algorithm. Spread increases or decreases the physical size of the shadow source before the blur is applied.
›Does this support inset shadows?
Yes. Each layer can be toggled to `inset`, which places the shadow inside the element's frame to create a sunken or pressed effect.
›Is the CSS compatible with all browsers?
The generated `box-shadow` property is supported by all modern browsers. For very old versions of Safari or Firefox, you may need to add `-webkit-` or `-moz-` prefixes manually.
Mọi người cũng tìm kiếm
Công cụ liên quan
More in this room.
- Trình tạo Box ShadowTrình chỉnh sửa box-shadow CSS trực quan.
- Trình tạo GradientGradient CSS tuyến tính, xuyên tâm và hình nón.
- Trình tạo Border RadiusTrình chỉnh sửa border-radius CSS từng góc.
- Trình chỉnh sửa Cubic BezierThiết kế các đường cong easing CSS trực quan.
- Trình tạo hoạt ảnh CSSTạo khung hình chính trực quan, sao chép CSS sẵn sàng dán.
- Trình tạo bộ lọc CSSXem trước trực tiếp độ mờ, độ sáng, xoay màu và hơn thế nữa.