功能展示(动态):
代码区:
<!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>
<style>
*{
box-sizing: border-box;
padding: 0;
margin: 0;
}
#search{
width: 410px;
height: 50px;
margin: auto;
position: relative;
}
input{
width: 300px;
height: 100%;
}
button{
height: 100%;
width: 100px;
}
.box{
position