带有插入的png上的CSS3“drop-shadow”

时间:2013-02-28 15:02:14

标签: css3 dropshadow

好的我可以用透明的png添加阴影:

.drop-shadow 
{
-webkit-filter: drop-shadow (0 1px 2px rgba(0,0,0,.5));
-moz-filter: drop-shadow (0 1px 2px rgba(0,0,0,.5));
-ms-filter: drop-shadow (0 1px 2px rgba(0,0,0,.5));
-o-filter: drop-shadow (0 1px 2px rgba(0,0,0,.5));
filter: drop-shadow (0 1px 2px rgba(0,0,0,.5));
}

(至少在某些浏览器上)

我如何更改代码以显示插入阴影?

1 个答案:

答案 0 :(得分:-1)

示例:

#yellow{ 
-webkit-box-shadow: inset 1px 1px 1px #FFFF00; 
-moz-box-shadow: inset 1px 1px 1px  #FFFF00; 
box-shadow: inset 1px 1px 1px #FFFF00; 
}