小白教程
所有教程
关于
Search
172.69.59.190
172.69.59.190
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Css3 pr text shadow”的源代码
本页内容
上一节:
Css3_pr_text_overflow
下一节:
Css3_pr_text_wrap
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:text-shadow}}[[Category:css reference|198]] = CSS3 text-shadow 属性 = 基本文字阴影(text-shadow): <sample title="" desc="" lang="html" hererun="1"> h1 { text-shadow: 2px 2px #ff0000; } </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> h1 {text-shadow:2px 2px #FF0000;} </style> </head> <body> <h1>Text-shadow effect</h1> <p><b>注意:</b>IE 9及更早版本的浏览器不支持 text-shadow 属性.</p> </body> </html> </run> 在此页底部有更多的例子。 == 浏览器支持 == 表格中的数字表示支持该属性的第一个浏览器版本号。 {| class="table table-striped table-hover" ! 属性 ! Chrome ! Internet Explorer / Edge ! Firefox ! Safari ! Opera |- | text-shadow | 4.0 | 10.0 | 3.5 | 4.0 | 9.6 |} == 属性定义及使用说明 == text-shadow 属性应用于阴影文本。 {| class="table table-striped table-hover" | 默认值: | none |- | 继承: | yes |- | 版本: | CSS3 |- | JavaScript 语法: | object.style.textShadow="2px 2px #ff0000" |} == 语法 == <pre> text-shadow: h-shadow v-shadow blur color;</pre> '''注意:''' text-shadow属性连接一个或更多的阴影文本。属性是阴影,指定的每2或3个长度值和一个可选的颜色值用逗号分隔开来。已失时效的长度为0。 {| class="table table-striped table-hover" ! 值 ! 描述 |- | h-shadow | 必需。水平阴影的位置。允许负值。 |- | v-shadow | 必需。垂直阴影的位置。允许负值。 |- | blur | 可选。模糊的距离。 |- | color | 可选。阴影的颜色。参阅 [[css colors legal|CSS 颜色值]]。 |} == 更多实例 == [[try.php?filename=trycss3_text shadow_blur|文字阴影模糊效果]] 这个例子演示了一个文字阴影模糊效果。 [[try.php?filename=trycss3_text shadow_white|白色文字上的文字阴影]] 这个例子演示了一个白色的文本文字阴影。 [[try.php?filename=trycss3_text shadow_neon|氖辉光文字阴影]] 这个例子演示了用霓虹灯的光芒文字阴影。 == 相关文章 == CSS3 教程: [[css3 text effects|css3 text effects]]
返回至“
Css3 pr text shadow
”。
上一节:
Css3_pr_text_overflow
下一节:
Css3_pr_text_wrap