摘要: 1. offsetParent 获取的最近的定位的父元素 offsetLeft/offsetTop 是相对于offsetParent的距离 offsetHeight/offsetWidth 获取盒子的大小 border + height + padding 2 scrollHeight 滚动内容的高 阅读全文
posted @ 2016-08-14 23:39 划过天际 阅读(792) 评论(0) 推荐(0) 编辑