js三大家族

JS三大家族 offset家族 作用:獲取元素真實的寬高和位置 其中有:offsetWidth 、offsetHeight 、offsetLeft和offsetTop以及offsetParent offsetLeft和offsetTop:檢測距離父盒子有定位的左/上面的距離 offsetWidth 、offsetHeight:檢測盒子自身寬高 offsetParent:檢測父系盒子中帶有定位的父盒
相關文章
相關標籤/搜索