jQuery API | 返回首页目录 | jQuery API 中英文对照版 |
scrollTop() |
scrollTop()Returns how many pixels the user has scrolled to the bottom (scrollTop). Works on containers with overflow: auto and window/document. 返回值Number 示例jQuery 代码:$("#testdiv").scrollTop()结果:100 |