html - 如何根据给定图像使用 css 制作框阴影,如下所示

标签 html css

我想在我的模板中创建类似的框阴影设计:

enter image description here

最佳答案

试试这个:

-webkit-box-shadow: 0px 7px 10px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 7px 10px 0px rgba(0,0,0,0.75);
-ms-box-shadow: 0px 7px 10px 0px rgba(0,0,0,0.75);
box-shadow: 0px 7px 10px 0px rgba(0,0,0,0.75);

关于html - 如何根据给定图像使用 css 制作框阴影,如下所示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41844941/

相关文章:

javascript - ResizeObserver 在 Windows 上无法按预期工作

javascript - 如何使用正则表达式替换CSS中的url(javascript)

html - CSS3 : positioning rectangle at the same hight as text (`h1` and `p` ) in header

html - 没有 div 的 Wordpress Contact Form 7 复选框的 CSS

javascript - 有没有办法使用js从html文本框中获取文本?

javascript - canvas.getContext ("2d");不工作

html - 选择选项中的删除线文本

html - 悬停时改变三 Angular 形的颜色

html - 垂直图像大于父 div

javascript - 如何在 JavaScript 中做两个对称的矩形三 Angular 形