日期:2014-05-16 浏览次数:20356 次
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <input id="btnID" type="button" value="ssss" style=" position:relative"/> <script> window.onload = function () { var obj = document.getElementById("btnID"); if (obj != null) { //显示坐标(130,15) obj.style.top = '130px'; //x坐标 obj.style.left = '15px'; //y坐标 } } </script> </body> </html>