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