Skip to content

Commit 0965259

Browse files
committed
css实现分类导航
1 parent 02afad4 commit 0965259

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>分类导航</title>
6+
<style>
7+
body, h3 {
8+
margin: 0;
9+
padding: 0;
10+
}
11+
12+
.nav {
13+
display: flex;
14+
align-items: center;
15+
border-bottom: 1px solid rgba(0, 0, 0, 0.3);
16+
padding: 12px 0;
17+
}
18+
19+
.nav h3 {
20+
flex: 1;
21+
margin-right: 16px;
22+
}
23+
24+
.nav span {
25+
margin-right: 16px;
26+
}
27+
</style>
28+
</head>
29+
<body>
30+
<div class="nav">
31+
<h3>家用电器</h3>
32+
<span>扫地机</span>
33+
<span>空气净化机</span>
34+
<span>清洁</span>
35+
<span>风扇</span>
36+
</div>
37+
</body>
38+
</html>

0 commit comments

Comments
 (0)