<script> var next = document.getElementById("next"); var prev = document.getElementById("prev"); var ul = document.getElementsByTagName("ul")[0]; var li = document.getElementsByTagName("li"); var x=0; next.onclick = function(){ x = x -289; ul.style.transform="translate3d("+x+"px,0,0)"; } prev.onclick = function(){ x = x +289; ul.style.transform="translate3d("+x+"px,0,0)"; }</script>
添加回答
举报
0/150
提交
取消