From e5a3435926603f4de585a9d0f2ac498a743a077c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B7=AF=E4=BA=BA=E7=94=B2?= Date: Sat, 3 Aug 2024 11:01:25 +0800 Subject: [PATCH] Update index.js --- static/script/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/script/index.js b/static/script/index.js index e44a8e9..0ff219e 100644 --- a/static/script/index.js +++ b/static/script/index.js @@ -1,6 +1,6 @@ // 头部滚动 (function(){ - let $header = document.querySelector('header'); + let $header = document.querySelector('.mod-head'); document.querySelector('.scroll-container').addEventListener('scroll',function(){ let scrollTop = this.scrollTop; let ratio = Math.min(scrollTop/1000,1);