这个滚动JS适用任何图片滚动,适用按钮,而且不会产生缝隙
代码如下
CSS样式:
.catalog{
width: 335px;
height: 354px;
float: left;
margin-top: 43px;
border: 1px solid #b03924;
position: relative;
overflow: hidden;
}
.catalog .h5{
font-weight: bold;
background: #e4e4e4;
line-height: 20px;
height: 20px;
margin-bottom: 5px;
text-indent: 5px;
}
.catalog .imgbox li{
width: 335px;
height: 354px;
float: left;
overflow: hidden;
background: #FFF;
}
.catalog .arrow{
position: absolute;
width: 50px;
height: 23px;
right: 10px;
<