diff --git a/css/style.css b/css/style.css index 3bb3b10..ce4f3a0 100644 --- a/css/style.css +++ b/css/style.css @@ -47,6 +47,7 @@ .footer { position: fixed; bottom: 0px; + z-index: 2; width: 100%; display: flex; justify-content: space-between; @@ -152,7 +153,7 @@ left: 0; right: 0; background-color: rgba(255,255,255,1); - z-index: 2; + z-index: 3; padding: 20px; transition: all .5s ease-in-out; color: #000000; @@ -172,6 +173,7 @@ bottom: 0px; left: 0px; right: 0px; + z-index: 0; padding: 20px; background-color: #FFFFFF; transition: all .5s ease-in-out; diff --git a/index.html b/index.html index 6f063de..d41333a 100644 --- a/index.html +++ b/index.html @@ -103,6 +103,24 @@ 感恩奋进70年,致敬时代金沙人! +
+ +
diff --git a/js/javascript.js b/js/javascript.js index 7f0e421..c49efa2 100644 --- a/js/javascript.js +++ b/js/javascript.js @@ -73,9 +73,14 @@ function closeVideo() { function checkInfo(){ $('.info-box').addClass('taskBox'); $('.close-box').addClass('btn-close'); + $('body').css({"overflow": "hidden","height": '100%'});//禁止底层页面滚动 + $('html').css({"overflow": "hidden","height": '100%'});//禁止底层页面滚动 } // 关闭详情 function closeEv(){ $('.info-box').removeClass('taskBox'); $('.close-box').removeClass('btn-close'); + $('.info-box').scrollTop(0); + $('body').css({"overflow": "scroll"}); + $('html').css({"overflow": "scroll"}); } \ No newline at end of file