你可以添加一个非正方形阴影到CSS的PNG内容吗? [英] Can you add a non-square drop shadow to PNG content with CSS?
本文介绍了你可以添加一个非正方形阴影到CSS的PNG内容吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以对PNG的内容进行投影?
Is it possible to do a drop shadow on the content of a PNG?
不是正方形
作用于PNG的不透明内容。
Not a square, but an object drop shadow that
acts on the non-transparent content of the PNG.
推荐答案
这绝对可能:此处
使用过滤器 / p>
Using filters, sample:
img {
-webkit-filter: drop-shadow(5px 5px 5px #222);
filter: drop-shadow(5px 5px 5px #222);
}
这篇关于你可以添加一个非正方形阴影到CSS的PNG内容吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文