Js中如何获取style标签中的left、top值 使用offsetleft和offsettop 具体代码如下: var left = document.getElementById("dv").offsetLeft;//数字类型没有px