Skip to content

Commit 91946c4

Browse files
committed
css实现进度条
1 parent 9b29c4a commit 91946c4

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>进度条</title>
8+
<style>
9+
.progress-bar {
10+
background-color: rgba(0, 0, 0, 0.1);
11+
border-radius: 9999px;
12+
}
13+
.progress-bg {
14+
display: flex;
15+
align-items: center;
16+
justify-content: center;
17+
background-color: #357edd;
18+
color: #fff;
19+
border-radius: 9999px;
20+
}
21+
</style>
22+
</head>
23+
<body>
24+
<div class="progress-bar">
25+
<div class="progress-bg" style="width: 40%;">40%</div>
26+
</div>
27+
</body>
28+
</html>

0 commit comments

Comments
 (0)