114 lines
2.4 KiB
HTML
114 lines
2.4 KiB
HTML
<!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>background</title>
|
|
<style>
|
|
body,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
ul,
|
|
li {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
input {
|
|
width: 240px;
|
|
height: 38px;
|
|
border: none;
|
|
outline: none;
|
|
/*
|
|
background: #eee;
|
|
background-image: url("./search.png");
|
|
background-repeat: no-repeat;
|
|
background-size: 18px;
|
|
background-position: 207px center; */
|
|
|
|
background: #eee url("./search.png") no-repeat 207px center;
|
|
background-size: 18px;
|
|
|
|
|
|
border-radius: 20px;
|
|
padding: 0;
|
|
padding-left: 20px;
|
|
padding-right: 40px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.menu {
|
|
width: 100vw;
|
|
overflow-x: scroll;
|
|
}
|
|
|
|
.menu ul {
|
|
width: 1230px
|
|
}
|
|
|
|
.menu ul li {
|
|
display: inline-block;
|
|
}
|
|
|
|
.item {}
|
|
.item img {
|
|
width: 50px;
|
|
height: 50px;
|
|
vertical-align: middle;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<input type="text" placeholder="输入关键字">
|
|
|
|
|
|
<div class="menu">
|
|
<ul>
|
|
<li>标题1</li>
|
|
<li>标题2</li>
|
|
<li>标题3</li>
|
|
<li>标题4</li>
|
|
<li>标题5</li>
|
|
<li>标题6</li>
|
|
<li>标题7</li>
|
|
<li>标题8</li>
|
|
<li>标题9</li>
|
|
<li>标题10</li>
|
|
<li>标题11</li>
|
|
<li>标题12</li>
|
|
<li>标题13</li>
|
|
<li>标题14</li>
|
|
<li>标题15</li>
|
|
<li>标题16</li>
|
|
<li>标题17</li>
|
|
<li>标题18</li>
|
|
<li>标题19</li>
|
|
<li>标题20</li>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
<div class="item">
|
|
<img src="https://upload.jianshu.io/users/upload_avatars/301940/189d69dd-af7c-4290-9e2c-89e98acf3603.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/96/h/96/format/webp" alt="">
|
|
<span>你好</span>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html> |