js中scrollLeft,scrollWidth,clientWidth,offsetWidth徹底詳解

scrollHeight: 獲取對象的滾動高度。javascript scrollLeft:設置或獲取位於對象左邊界和窗口中目前可見內容的最左端之間的距離css scrollTop:設置或獲取位於對象最頂端和窗口中可見內容的最頂端之間的距離html scrollWidth:獲取對象的滾動寬度前端 offsetHeight:獲取對象相對於版面或由父座標 offsetParent 屬性指定的父座標的高
相關文章
相關標籤/搜索