CSS 阴影位于相反的位置
我试图让这个阴影进入盒子的内部和底部,但我无法让它工作。有没有人对如何执行此操作有很好的解释并可以帮助我?
-moz-box-shadow:0 5px 5px rgba(128,128,128,0.1);
-webkit-box-shadow: 0 5px 5px rgba(128,128,128,0.1);
box-shadow: 0 5px 5px rgba(128,128,128,0.1);
Im trying to get this shadow to the inner and on the bottom of my box, but I can't get it to work. Is there anyone who have a good explanation on how to do this and can help me out?
-moz-box-shadow:0 5px 5px rgba(128,128,128,0.1);
-webkit-box-shadow: 0 5px 5px rgba(128,128,128,0.1);
box-shadow: 0 5px 5px rgba(128,128,128,0.1);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许是这样的?
Something like that maybe?
你能做这样的事吗?不过,它在左侧和右侧留下了一个微小的间隙...
或者,您可以尝试类似的方法(用多个常规盒子阴影模拟插图):
不幸的是,这也有一个警告,即来自取消阴影。
Could you do something like this? It leaves a tiny gap on the left and right hand sides though...
Or alternatively, you could try something like this (simulating the inset with multiple regular box-shadows):
Unfortunately, this also has the caveat of a white glow from the cancelling shadows.