From dcd627783f783700b4c0c02fa334b65e056a3d62 Mon Sep 17 00:00:00 2001 From: 15008401624 <597081433@qq.com> Date: Fri, 29 Jan 2021 11:43:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=88=AA=E6=B5=AE=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/css/style.css | 2 +- public/static/js/script.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/static/css/style.css b/public/static/css/style.css index 3d4f6c2..76f4e7d 100644 --- a/public/static/css/style.css +++ b/public/static/css/style.css @@ -101,7 +101,7 @@ input,select,textarea{outline:medium none; resize: none;} .head-box .center-block .language a.active{ font-weight: bold; color: #F9BE3E;} .head-box .center-block .language a:hover{ color: #F9BE3E;} .head-box.active{ position: fixed; top: 0;} -.head-box.active .w-1500{ width: 100%;} +/* .head-box.active .w-1500{ width: 100%;} */ .banner-box{ height: 100vh;} diff --git a/public/static/js/script.js b/public/static/js/script.js index f788864..deb732d 100644 --- a/public/static/js/script.js +++ b/public/static/js/script.js @@ -10,11 +10,11 @@ layui.use(['layer', 'form', 'element'], function(){ }); $(window).scroll(function(event) { - // if ($(window).scrollTop() > 0) { - // $('.head-box').addClass('active'); - // } else { - // $('.head-box').removeClass('active'); - // } + if ($(window).scrollTop() > 0) { + $('.head-box').addClass('active'); + } else { + $('.head-box').removeClass('active'); + } if ($(window).scrollTop() > 400) { $('.gotop').fadeIn(); } else {