一、js三大家族包括
js三大家族包括offset,client,scroll。
二、三大家族的简介
1.offsetWidth\offsetHeight=width\heigt+padding+border
2.clientWidth\clientHeight=width\height+padding
3.scrollWitdh\scrollHeight=width\height(页面内容的高度\宽度),
巧记:offset代表的是自身,所以,offset应该像我们平时所说的宽和高(content-box),client包括的是内容的高度还有内边距
三、使用方法
三大家族的使用方法可以直接使用,例如 : 元素.clentTop