* { padding: 0; margin: 0; } .clearfix { *zoom: 1; } .clearfix:after { content: ""; display: table; clear: both; } #slide { width: 620px; } #slide ul { overflow: hidden; } #slide ul li { list-style: none; float: left; width: 200px; height: 100px; color: #FFF; text-align:center; line-height: 100px; background: red; margin: 2px; } #slide .ul1 li { background: #3888ef; } #slide .ul2 li { background: #ff00af; } .prev,.next { width: 60px; height: 60px; background: #000; text-align:center; line-height: 60px; font-size: 20px; color:#fff; display: inline-block; }