开发者

Is there a way to stop the box from knocking out a box-shadow?

开发者 https://www.devze.com 2023-03-14 15:28 出处:网络
Even with a transparent background, typically a box-shadow doesn\'t fill the contents of a box. I think I have seen a demo where this w开发者_Python百科asn’t the case, but can’t recall how it was d

Even with a transparent background, typically a box-shadow doesn't fill the contents of a box.

I think I have seen a demo where this w开发者_Python百科asn’t the case, but can’t recall how it was done. Does anyone know more about this?


I am having decent success simulating this by setting two box-shadows: one traditional box shadow, and the second inset with a very large spread value.

The suggestion to set the box’s background is also a good one, if you can match it up well.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号