20 lines
546 B
Markdown
20 lines
546 B
Markdown
---
|
||
title: CSS3 Text Shadow Property
|
||
localeTitle: CSS3文本阴影属性
|
||
---
|
||
## CSS3文本阴影属性
|
||
|
||
文本阴影属性为文本添加阴影。 每个阴影都是原始元素的X和Y偏移,模糊半径和颜色的组合。 \`\`\`css Css语法
|
||
|
||
text-shadow:X偏移Y偏移模糊半径颜色
|
||
```
|
||
**Example :**
|
||
```
|
||
|
||
CSS p { text-shadow:2px 2px 8px#FF0000; } \`\`\`
|
||
|
||
#### 更多信息:
|
||
|
||
[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow)
|
||
|
||
[W3Schools的](https://www.w3schools.com/cssref/css3_pr_text-shadow.asp) |