DOM常用的属性

offsetHeight height+padding+border,当前对象的高度 clientHeight 获取对象可视高度,不包括滚动条,不包括边框 scrollHeight 获取对象的滚动高度/内容总高度 offsetWidth clientWidth scrollWidth offsetTop 当前对象相对于定位父级的top值 clientTop 获取对象上边框的border高度 scr
相关文章
相关标签/搜索