先上代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
*{
margin:0;
padding:0;
}
.wrapper{
margin:100px 200px
}
#inp{
width:300px;
height: 40px;
}
ul{
width: 300px;
list-style: none;
border: 1px solid #000;
display: none;
}