请使用
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"
解决方案 »
- 给第5个第9个第13个li加上样式 这个JS怎么写? 大侠们帮下忙
- 问个向后台提交数据的问题
- 如何实现google地图拖拽的时候旁边的文本框中的经纬值也跟着变化
- JS如何复制一个td对象?
- 小弟初学javascript遇到一个错误,求大虾指教
- 如何用javascript给添加的行赋ID值?
- response.write怎么调用f()函数
- 鼠标在图片上选择四边框javascript怎么取出两点在图片上的标值
- 怎麼樣用向左鍵(key 37) 做反向[TAB]????
- http://www.kubao.com 里的网页特效酷B了
- 为什么我用for in 查看Object对象的属性,却什么也没有输出?
- javascript为什么会出现这样的问题???请进。。。
p.style.posTop = temp + "px";
p.style.top = temp + "px";
temp = parseInt(p.style.left)+20;
p.style.left = temp + "px";