摘要: 不废话!offsetTop 相当于elem.style.top 区别在于1 offsetTop只读 2elem.style.top只能读style=" top:数值"; 3 offsetTop返回数值 elelm.style.top返回 带"px"字符串。用处: 读取 left top;offsetLeft同上offsetWidth offsetHeight读取元素所占尺寸包含滚动条不算marginclientWidth clientHeight 内容区域大小 算paddingscrollHeight scrollWidht 滚动区域整体大小scroll 阅读全文
posted @ 2012-07-30 19:49 justlancer 阅读(142) 评论(0) 推荐(0) 编辑