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,58 @@
<!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>Document</title>
<style>
* {
margin: 0;
padding: 0;
list-style: none;
}
.search {
width: 166px;
position: relative;
}
.search .text {
position: absolute;
font-size: 13px;
top: 50%;
left: 7px;
margin-top: -8.6px;
}
.search input {
padding-left: 35px;
padding-right: 20px;
box-sizing: border-box;
width: 100%;
}
.search .nums {
position: absolute;
top: 50%;
right: 5px;
margin-top: -7.9px;
font-size: 12px;
}
</style>
</head>
<body>
<div class="search">
<div class="text">网页</div>
<input type="text" placeholder="搜索">
<div class="nums">3</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,53 @@
<!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>margin 居中</title>
<style>
* {
margin: 0;
padding: 0;
list-style: none;
}
.header {
height: 60px;
background: black;
}
.center {
width: 1200px;
margin: 0 auto;
background: red;
height: 100%;
/* overflow: hidden; */
}
.center li {
float: left;
line-height: 60px;
width: 70px;
text-align: center;
}
</style>
</head>
<body>
<div class="header">
<ul class="center">
<li>你好</li>
<li>你好</li>
<li>你好</li>
<li>你好</li>
<li>你好</li>
<li>你好</li>
</ul>
</div>
</body>
</html>