From 0cf6d18ae827406eedc578d98f1a0e5e61442e13 Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Sun, 18 Dec 2022 23:23:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/service12.css | 1 + js/service12.js | 8 +++++--- service/service12.html | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/css/service12.css b/css/service12.css index cec7fc3..9010370 100644 --- a/css/service12.css +++ b/css/service12.css @@ -152,6 +152,7 @@ a:active{ font-weight: 400; color: #FFFFFF; margin-top:15px; + margin-bottom:0; } .list{ margin-bottom:20px; diff --git a/js/service12.js b/js/service12.js index 2bcd549..495d0ad 100644 --- a/js/service12.js +++ b/js/service12.js @@ -2,15 +2,17 @@ //banner $(function(){ let url = window.location.href; + if(url.split('?').length!=0&&url.split('?')[1]){ $(`.section${url.split('?')[1].slice(3)}`).addClass('active') - $('header').css('display','none !important') + // $('header').css('display','none !important') } $('#header').load('../public/header1.html',function(){ + $('.header').addClass('on'); if(url.split('?').length!=0&&url.split('?')[1]){ - $('header').css('display','none') + $('.header').css('display','none') } }) //移动端展开nav @@ -37,7 +39,7 @@ continuousHorizontal:true, scrollingSpeed:500, showActiveTooltip :true, - anchors: ['hero', 'one', 'two', 'three','four','five'], + // anchors: ['hero', 'one', 'two', 'three','four','five'], loopHorizontal: true, afterLoad: function(anchorLink, index){ console.log(index) diff --git a/service/service12.html b/service/service12.html index 9c6b172..8c213e9 100644 --- a/service/service12.html +++ b/service/service12.html @@ -331,9 +331,9 @@