1.手风琴效果
<!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>test03</title>
<style>
* {
margin: 0;
padding: 0;
list-style: none;
}
ul {
width: 600px;
background-color: lightgray;
margin: 0 auto;
}
li{
width: 600px;
height: 100px;
}
.open{
height: 300px;
}
p {
width: 600px;
height: 100px;
line-height: 100px;
background-color: deepskyblue;
color: #fff;
overflow: hidden;
font-size: 20px;
}
.talent