好的我可以用透明的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));
}
(至少在某些浏览器上)
我如何更改代码以显示插入阴影?
答案 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;
}