CSS部分
<style type="text/css">
* {
padding: 0;
margin: 0;
list-style: none;
}
.scroll-content {
width: 500px;
height: 300px;
border: solid 1px #000;
overflow: hidden;/*必要样式*/
}
.scroll-content .child {
position: relative;/*必要样式*/
top: 0px;/*必要样式*/
left: 0px;/*必要样式*/
}
.scroll-content .child li {
height: 60px;
line-height: 60px;
text-align: center;
border-bottom: solid 1px #000;
transition: all 0.3s ease-out;/*必要样式*/
}
.scroll-content .child li:nth-child(odd) {
background: #B4F59D;
}
.s