IE6下实现text-shadow文字阴影效果

CSS3的文字阴影效果text-shadow不支持天杀的IE6,不过这边有个土办法同样可以实现差不多的效果。

,这是个很简单的方法,可以[点击预览]效果。

代码如下:

[sourcecode language='css']
.text_shadow{
filter: Shadow(Color=#797979, Direction=135, Strength=3);
height: 1%;
}
[/sourcecode]

其中Color是阴影颜色,Direction相当于阴影投射角度,Strength就是强度了。

3 thoughts on “IE6下实现text-shadow文字阴影效果

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>