webveuje/csspress/demo/search3.html

53 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2021-01-20 11:25:18 +08:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
.box {
width: 300px;
}
.box1{
margin:30px;
}
.menu{
width: 300px;
list-style: none;
margin-top: 20px;
}
.tuijianitem{
cursor: pointer;
height: 30px;
}
.tuijianitem:hover{
background: #eeeeee;
}
</style>
</head>
<body>
<div class="box1">
<div class="box">
<input type="text" class="shuru" />
<span class="btn">搜索</span>
</div>
<ul class="menu">
<li class="tuijianitem">中华老字号</li>
<li class="tuijianitem">营养零食</li>
<li class="tuijianitem">休闲零食</li>
<li class="tuijianitem">鲜花</li>
<li class="tuijianitem">永生花</li>
<li class="tuijianitem">鼠尾草</li>
</ul>
</div>
</body>
</html>