
css3文字阴影。
text-shadow: h-shadow v-shadow blur color;
h-shadow | Required. The position of the horizontal shadow. Negative values are allowed | Play it » |
v-shadow | Required. The position of the vertical shadow. Negative values are allowed | Play it » |
blur | Optional. The blur distance | Play it » |
color | Optional. The color of the shadow. Look at CSS Color Values for a complete list of possible color values |
第一个参数是水平移动距离的数值,即时文字的阴影偏离原来的文字水平方向位置。
第二个参数是竖直移动距离的数值,既是文字的阴影偏离原来的文字竖直方向的位置。
第三个是阴影的大小,既是文字的宽度,默认是原来的文字。
第四个则是阴影显示的颜色。默认是原来文字的颜色。
此篇文章由DurkBlue发布,撰文不易,转载请注明来处