摘要: 1.offsetTop :当前对象到其上级层顶部的距离.不能对其进行赋值.设置对象到页面顶部的距离请用style.top属性. 2.offsetLeft :当前对象到其上级层左边的距离.不能对其进行赋值.设置对象到页面左部的距离请用style.left属性. 3.offsetWidth :当前对象的 阅读全文
posted @ 2022-06-16 11:10 磊~~ 阅读(165) 评论(0) 推荐(0) 编辑