下图为效果展示

演示站:定价卡

222

源码如下

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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pricing Card</title>
<style>
*{
padding: 0;
margin: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
height: 100vh;
display: -ms-grid;
display: grid;
place-items: center;
background-color: #dfe9f5;
}
.wrapper {
width: 100vw;
padding-bottom: 2em;
}
.container {
width: 100%;
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
padding: 0 2em;
gap: 3em;
font-size: 16px;
}
a {
background-color: #07001f;
color: #ffffff;
display: block;
width: 95vw;
max-width: 450px;
position: relative;
font-size: 18px;
margin: 1em auto 0 auto;
text-align: center;
text-decoration: none;
padding: 1em 0;
border-radius: 5px;
}
.card {
width: 100%;
position: relative;
background-color: #ffffff;
border-radius: 10px;
padding: 2.5em 0;
text-align: center;
-webkit-box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
}
h3 {
width: 70%;
padding: 0.6em 0;
border-radius: 5px 35px 35px 5px;
position: relative;
margin-left: -0.6em;
font-weight: 400;
font-size: 1.6em;
letter-spacing: 0.15em;
color: #ffffff;
}
h1 {
font-size: 2em;
margin: 0.8em 0;
color: #07001f;
}
.card ul {
list-style: none;
}
li {
position: relative;
margin: auto;
width: 60%;
padding-bottom: 0.4em;
color: #000742;
}
ul li:not(:last-child) {
margin-bottom: 1.8em;
border-bottom: 1px solid rgb(164, 165, 170);
}
button {
font-size: 1.2em;
margin-top: 2.5em;
width: 80%;
padding: 1em 0;
border-radius: 5px;
color: #ffffff;
border: none;
}
.basic h3,
.basic button {
background: -o-linear-gradient(45deg, #ffe01c, #f7a71b);
background: linear-gradient(45deg, #ffe01c, #f7a71b);
}
.standard h3,
.standard button {
background: -o-linear-gradient(45deg, #bff524, #45ba45);
background: linear-gradient(45deg, #bff524, #45ba45);
}
.premium h3,
.premium button {
background: -o-linear-gradient(45deg, #00cdf3, #0179e9);
background: linear-gradient(45deg, #00cdf3, #0179e9);
}

@media screen and (max-width: 1000px) {
body {
display: block;
}
.container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
padding: 2em 0.3em;
gap: 3em;
}
a {
margin: 30px auto 0 auto;
}
.card {
width: 90%;
margin: auto;
min-width: 320px;
}
}
</style>
</head>
<body>
<div class="wrapper">
<div class="container">
<div class="card basic">
<h3>BASIC</h3>
<h1>$12.99</h1>
<ul>
<li>2GB Disk Storage</li>
<li>2 Email Address</li>
<li>10GB Bandwidth</li>
<li>3 Months Support</li>
</ul>
<button>Buy Now</button>
</div>
<div class="card standard">
<h3>STANDARD</h3>
<h1>$24.99</h1>
<ul>
<li>10GB Disk Storage</li>
<li>8 Email Address</li>
<li>10GB Bandwidth</li>
<li>6 Months Support</li>
</ul>
<button>Buy Now</button>
</div>
<div class="card premium">
<h3>PREMIUM</h3>
<h1>$49.99</h1>
<ul>
<li>50GB Disk Storage</li>
<li>25 Email Address</li>
<li>200GB Bandwidth</li>
<li>12 Months Support</li>
</ul>
<button>Buy Now</button>
</div>
</div>
<a href="https://www.chenxz21.cf" target="_blank">北异站</a>
</div>
</body>
</html>