在文檔使用了DTD時,. document.body.scrollTop的值爲0,. 此時需要使用. document.documentElement.scrollTop. 來穫取滾動條滾過的長度;.
確定! 回上一頁