CSS 如何仅在左侧,右侧和底部创建框阴影?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9256729/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 02:56:09  来源:igfitidea点击:

How to create box-shadow only on left, right and bottom?

css

提问by knightrider

I tried to find solution (tricks) how to use box-shadow on left, right and bottom. I can only manage to find left, right and bottom at CSS3 Box Shadow on Top, Left, and Right Only.

我试图找到解决方案(技巧)如何在左侧、右侧和底部使用 box-shadow。我只能设法在CSS3 Box Shadow on Top、Left 和 Right Only 中找到 left、right 和 bottom 。

I tried to change the value base on that, but unfortunately, it didn't work out. So if anyone has the solution already, please kindly provide it. Thank you.

我试图在此基础上更改值,但不幸的是,它没有奏效。所以如果有人已经有了解决方案,请提供它。谢谢你。

With Regards,

带着敬意,

回答by knightrider

Sorry everyone,

对不起大家,

I just found out the answer by using the following code.

我刚刚通过使用以下代码找到了答案。

-moz-box-shadow: 0px 3px 8px rgb(100,100,100);
-webkit-box-shadow: 0px 3px 8px rgb(100,100,100);
box-shadow: 0px 3px 8px rgb(100,100,100);