我试图创建一个轮播,但它不能使用下面的代码。
HTML:
<div class="carousil_listing_container clearfix"><a class="buttons prev" href="#">left</a>
<div class="viewport"><ul class="overview"><li>Content 01</li><li>Content 02</li><li>Content 3</li></ul></div><a class="buttons next" href="#">right</a></div>
CSS:
.carousil_listing_container { height: 1%; overflow:hidden; padding: 0 0 10px; }
.carousil_listing_container .viewport { float: left; width: 240px; height: 125px; overflow: hidden; position: relative; }
.carousil_listing_container .buttons { background:url("../images/buttons.png") no-repeat scroll 0 0 transparent; display: block; margin: 30px 10px 0 0; background-position: 0 -38px; text-indent: -999em; float: left; width: 39px; height: 37px; overflow: hidden; position: relative; }
.carousil_listing_container .next { background-position: 0 0; margin: 30px 0 0 10px; }
.carousil_listing_container .disable { visibility: hidden; }
.carousil_listing_container .overview { list-style: none; position: absolute; padding: 0; margin: 0; width: 240px; left: 0 top: 0; }
.carousil_listing_container .overview li{ float: left; margin: 0 20px 0 0; padding: 1px; height: 121px; border: 1px solid #dcdcdc; width: 236px;}