first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
/* 专门用来清除标签的默认样式的 */
li {
list-style: none; /* 清除li标签的小圆点 */
}
a {
text-decoration: none; /* 清除a标签的下划线 */
}
body,ul {
margin: 0;
padding: 0;
}

View File

@@ -0,0 +1,18 @@
.nav {
height: 38px;
background: #96b97d;
}
.nav ul {
height: 38px;
line-height: 38px;
}
.nav ul li {
float: left;
margin-right: 20px;
}
.nav ul li a{
color: #fff;
}

View File

@@ -0,0 +1,10 @@
/* 存放使用频率高的css代码 */
.red {
color: red;
}
.center {
width: 1260px;
margin: 0 auto;
}

View File

@@ -0,0 +1,34 @@
<!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>
<link rel="stylesheet" href="./css/clear.css">
<link rel="stylesheet" href="./css/public.css">
<link rel="stylesheet" href="./css/nav.css">
</head>
<body>
<div class="nav">
<div class="center">
<ul>
<li>
<a href="" >首页</a>
</li>
<li>
<a href="">HTML</a>
</li>
<li>
<a href="">CSS</a>
</li>
<li>
<a href="">JS</a>
</li>
</ul>
</div>
</div>
</body>
</html>