JavaScript之轮播图
(1)html <div class="box" id="box"> <ul class="uls" id="uls"> <li><img src="img/one.jpg" alt=""></li> <li><img src="img/two.jpg" alt=""></li> <li><img src="img/three.jpg" alt=""></li> <li><img src="img/four.jpg" alt=""></li> <li><img src="img/five.jpg" alt=""></li> <li><img src="img/six.jpg" alt=""></li> </ul> <span id="left">左</span> <span id="right">右</span> <ol id="ols" class="ols"> <li class="selected"></li> <li></li> <li></li> <li></li> <li></li> <li></li> </ol> </div> (2)css *{ margin: 0px; padding: 0px; } .box{ width: 520px; height: 280px; border: 1px solid #000; margin: 50px auto;