css 怎么实现阴影效果
方法 1:使用 text-shadow 属性实现文字阴影效果
text-shadow 属性用于设置带阴影的文本;可设置阴影的像素长度、宽度和模糊的距离以及
阴影的颜色。
示例:
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>css 设置文本阴影效果</title>
<style>
h1 {
color: red;
text-shadow: 3px 5px 5px #656B79;
}
</style>
</head>
<body>
评论0
最新资源