以下是代码
<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>手风琴</title>
<style>
* {
margin: 0;
padding: 0;
}
.listbox {
width: 500px;
height: 400px;
margin: 50px auto;
}
.list {
position: relative;
}
.list a {
display: block;
height: 35px;
background: linear-gradient(#eeeeee, #8f8f8f);
text-decoration: none;
padding-left: 12px;
border-radius: 5px;
text-decoration: none;
color: #424242;
line-height: 35px;
}