From ff34368c5c8aeda32b67a229ae3c2c4297150d9f Mon Sep 17 00:00:00 2001 From: AviderMin Date: Thu, 31 Oct 2024 09:58:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BF=9B=E5=BA=A6=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebNews/foucsreport.html | 2 +- WebNews/index.html | 2 +- WebNews/newsclass.html | 2 +- WebNews/newsinfo.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WebNews/foucsreport.html b/WebNews/foucsreport.html index 66ac076..abf9955 100644 --- a/WebNews/foucsreport.html +++ b/WebNews/foucsreport.html @@ -113,7 +113,7 @@ }); Prostick = document.querySelector('.Prostick'); - totalHeight = document.body.scrollHeight - window.innerHeight; + totalHeight = document.documentElement.scrollHeight - window.innerHeight; }); window.addEventListener('scroll', function () { diff --git a/WebNews/index.html b/WebNews/index.html index fee5577..94c7d05 100644 --- a/WebNews/index.html +++ b/WebNews/index.html @@ -78,7 +78,7 @@ }); Prostick = document.querySelector('.Prostick'); - totalHight = document.body.scrollHeight - window.innerHeight; + totalHight = document.documentElement.scrollHeight - window.innerHeight; }); window.addEventListener('scroll', function () { diff --git a/WebNews/newsclass.html b/WebNews/newsclass.html index aacc848..97f1ec8 100644 --- a/WebNews/newsclass.html +++ b/WebNews/newsclass.html @@ -56,7 +56,7 @@ Prostick = document.querySelector('.Prostick'); - totalHight = document.body.scrollHeight - window.innerHeight; + totalHight = document.documentElement.scrollHeight - window.innerHeight; }); window.addEventListener('scroll', function () { let pro = (window.pageYOffset / totalHight) * 100; diff --git a/WebNews/newsinfo.html b/WebNews/newsinfo.html index 1856edc..d558eaa 100644 --- a/WebNews/newsinfo.html +++ b/WebNews/newsinfo.html @@ -36,7 +36,7 @@ Prostick = document.querySelector('.Prostick'); - totalHight = document.body.scrollHeight - window.innerHeight; + totalHight = document.documentElement.scrollHeight - window.innerHeight; }); window.addEventListener('scroll', function () { let pro = (window.pageYOffset / totalHight) * 100;