![html - Understanding offsetWidth, clientWidth, scrollWidth and -Height, respectively - Stack Overflow html - Understanding offsetWidth, clientWidth, scrollWidth and -Height, respectively - Stack Overflow](https://i.stack.imgur.com/Cl1IA.png)
html - Understanding offsetWidth, clientWidth, scrollWidth and -Height, respectively - Stack Overflow
![深刻了解offsetTop,offsetLeft,offsetWidth,offsetHeight,scrollTop,scrollLeft,scrollWidth,scrollHeight,clientHeight,clientWidth - BarneyZhang - 博客园 深刻了解offsetTop,offsetLeft,offsetWidth,offsetHeight,scrollTop,scrollLeft,scrollWidth,scrollHeight,clientHeight,clientWidth - BarneyZhang - 博客园](https://pic002.cnblogs.com/images/2011/285919/2011062314505631.jpg)
深刻了解offsetTop,offsetLeft,offsetWidth,offsetHeight,scrollTop,scrollLeft,scrollWidth,scrollHeight,clientHeight,clientWidth - BarneyZhang - 博客园
![js中的各种“位置”——“top、clientTop、scrollTop、offsetTop……” Element.getBoundingClientRect()元素的大小及其相对于视口的位置- javascript - 乐享WEB技术栈 js中的各种“位置”——“top、clientTop、scrollTop、offsetTop……” Element.getBoundingClientRect()元素的大小及其相对于视口的位置- javascript - 乐享WEB技术栈](http://ww.qdxiaochuan.com/zb_users/upload/2021/11/202111181637250628296036.png)
js中的各种“位置”——“top、clientTop、scrollTop、offsetTop……” Element.getBoundingClientRect()元素的大小及其相对于视口的位置- javascript - 乐享WEB技术栈
offset() adds scrollTop to the top coordinate (only in IE and jQuery 1.12.0 and 2.2.0) · Issue #2897 · jquery/jquery · GitHub
![javascript - How to set the scrollTop to the top of a div containing a link with jQuery.animate()? - Stack Overflow javascript - How to set the scrollTop to the top of a div containing a link with jQuery.animate()? - Stack Overflow](https://i.stack.imgur.com/s5ZK0.png)