定位:
document.getElementById(“b1″).style.position=”absolute”;
document.getElementById(“b1″).style.top=”10px”;
移动:
document.getElementById(“b1”).style.left=document.getElementById(“b1″).offsetLeft-1 +”px”; //向左移动1px
定位:
document.getElementById(“b1″).style.position=”absolute”;
document.getElementById(“b1″).style.top=”10px”;
移动:
document.getElementById(“b1”).style.left=document.getElementById(“b1″).offsetLeft-1 +”px”; //向左移动1px
javascript 文本框定位、移动:等您坐沙发呢!