首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
pageyoffset专题
js滑动操作之-pageYOffset,scrollTop,offsetHeight,scrollHeight
读值 1) window.pageYOffset==window.scrollY it returns the number of pixels the document is currently scrolled along the vertical axis 2) scrollElm.scrollTop gets or sets the number of pix
阅读更多...