js实现图片无缝循环跑马灯
html 代码 <div class="myls-out-div" style="overflow: hidden;"> <ul id="mylspaomadeng" class="myls-ul" > <li class="myls-li"> <img class="myls-img" src="img/indexImg/myls1.png" /> </li> <li class="myls-li"> <img class="myls-img" src="img/indexImg/myls2.png" /> </li> <li class="myls-li"> <img class="myls-img" src="img/indexImg/myls3.png" /> </li> <li class="myls-li"> <img class="myls-img" src="img/indexImg/myls4.png" /> </li> </ul> </div> css .myls-out-div { width: 100%; height: 212px; background-color: #fafafa; float: left; overflow: hidden; } .myls-img { height: 100%; } .myls-ul{ float: left;