-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2021.2.15毛玻璃
98 lines (98 loc) · 2.76 KB
/
2021.2.15毛玻璃
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>陳山羊/毛玻璃</title>
<style>
body{
display: flex;
justify-content: center;
/* 给背景一个渐变 */
background:linear-gradient(
to left,
rgb(238, 92, 92),
rgb(154, 127, 250)) ;
}
*{
padding: 0;
margin: 0;
}
.a{
position: relative;
width: 400px;
height: 250px;
top: 150px;
}
.b{
position: absolute;
width: 400px;
height: 250px;
border-radius: 20px;
/* 设置渐变 */
background: linear-gradient(
to right bottom,
rgba(255,255,255,.6),
rgba(255,255,255,.3),
rgba(255,255,255,.2)
);
/* 重点:使元素背景模糊化 */
backdrop-filter: blur(11px);
/* 设置上高光和左高光,使其看起来更加逼真 */
border-top: 1px solid rgba(255,255,255,.8);
border-left: 1px solid rgba(255,255,255,.8);
}
.b span{
/* 设置文字的大小和粗细 */
font: 900 50px '';
position: absolute;
top: 10px;
left: 20px;
color: rgba(0,0,0,.5);
/* 设置文字阴影 */
text-shadow: 1px 1px 3px rgba(255,255,255,.7);
}
.b p{
font: 900 25px '';
position: absolute;
bottom: 20px;
right: 20px;
color: rgba(255,255,255,.3);
/* 设置字体间距 */
letter-spacing: 3px;
}
/* 接下来设置两个球 */
.c{
width: 160px;
height: 160px;
border-radius: 50%;
background-color: rgb(240,160,0);
position: absolute;
top: 140px;
left: -40px;
z-index: -99;
}
.d{
width: 200px;
height: 200px;
border-radius: 50%;
background-color: #77fdd7;
position: absolute;
top: -50px;
left: 260px;
z-index: -99;
}
</style>
</head>
<body>
<div class="a">
<div class="b">
<span>GOAT</span>
<P>2021_2_15/bilibili</P>
</div>
<div class="c"></div>
<div class="d"></div>
</div>
</body>
</html>