最赞回答 / mazhiqiang1216
leftBtn.onclick = function(){ list.style.left = list.style.left -1000+'px';} rightBtn.onclick = function(){ list.style.left = list.style.left +1000+'px';}list.style.left是一个字符串你要做计算的时候得用parseInt(list.style.left)
2016-04-14