请使用
document.getElementByID("id").style.left = "123px";
document.getElementByID("id").style.top = "123px"; 另外,一定要加单位"122px"
document.getElementByID("id").style.left = "123px";
document.getElementByID("id").style.top = "123px"; 另外,一定要加单位"122px"
调试欢乐多
p.style.posTop = temp + "px";
p.style.top = temp + "px";
temp = parseInt(p.style.left)+20;
p.style.left = temp + "px";