text-shadow : none | <length> none | [<shadow>, ] * <shadow> 或none | <color> [, <color> ]*
相关属性 : 无
text-shadow : none | <length> none | [<shadow>, ] * <shadow> 或none | <color> [, <color> ]*
相关属性 : 无
设置或检索对象中文本的文字是否有阴影及模糊效果。可以设定多组效果,方式是用逗号隔开。可以被用于伪类 :first-letter 和 :first-line 。对应的脚本特性为 textShadow
| (×)IE6 | (×)Firefox 3.0.10 | (√)Chrome 2.0.x | (√)Opera 9.64 | (√)Safari 4 |
| (×)IE7 | (√)Firefox 3.5 | |||
| (×)IE8 | ||||
示例:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="utf-8" />
<meta name="robots" content="all" />
<meta name="author" content="Tencent-ISRD" />
<meta name="Copyright" content="Tencent" />
<title>text-shadow</title>
</head>
<body>
<!-- text-shadow:指定阴影的水平延伸距离 指定阴影的垂直延伸距离 指定模糊效果的作用距离 指定颜色 -->
<div style="text-shadow:3px 2px 6px #000;">可以看到文字投影阴影效果</div>
</body>
</html>