diff --git a/css/huaxia.css b/css/huaxia.css
index dfd6d21..4f2a0fd 100644
--- a/css/huaxia.css
+++ b/css/huaxia.css
@@ -2094,6 +2094,16 @@ align-items: flex-end;
.tyhder_btntop{
display: none;
}
+.tyhder_moban{
+ position: fixed;
+ width: 100%;
+ height: 100%;
+ top: 0px;
+ left: 0px;
+ background-color: rgb(0,0,0,0.5);
+ z-index: -1;
+ display: none;
+}
.pod{
/* background-color: rgb(245, 245, 245); */
@@ -5968,4 +5978,17 @@ ul {
}
.tyAboutUs_lxwx img{
width: 100%;
+}
+.tyhder_herader .tyhder_listnavpad{
+ position: fixed;top: 80px;
+ right: 0px;
+ display: block;
+ height: 100%;
+ background-color: #fff;
+}
+.tyhder_listnavpad li{
+ padding: 15px 60px;
+ text-align: center;
+ border-top: 1px solid #E6E6E6;
+ background-color: #fff;
}
\ No newline at end of file
diff --git a/htmls/contactUs/contactUs.html b/htmls/contactUs/contactUs.html
index d2bde95..ffbada3 100644
--- a/htmls/contactUs/contactUs.html
+++ b/htmls/contactUs/contactUs.html
@@ -10,11 +10,11 @@
联系我们
-
+
diff --git a/htmls/grzx/personalData.html b/htmls/grzx/personalData.html
index 45a2ee6..e6a9b6b 100644
--- a/htmls/grzx/personalData.html
+++ b/htmls/grzx/personalData.html
@@ -18,12 +18,12 @@
-
-
+
@@ -1172,69 +1162,7 @@ $(".ty_listnav").addClass("ty_listnavPosition")
-
-
-
+
diff --git a/js/huaxia.js b/js/huaxia.js
index 945eaf0..152fa64 100644
--- a/js/huaxia.js
+++ b/js/huaxia.js
@@ -752,15 +752,37 @@ function getScrollTop() {
document.addEventListener("scroll", myFunction);
function myFunction() {
- if (getScrollTop() > 125) {
+
+
+ if (getScrollTop() > $(".tyhder_herader>img").css("height").split("px")[0]) {
$(".pod").css("position", "fixed")
$(".pod").addClass("dtip")
-
- } else if (getScrollTop() < 125) {
+ $(".mian").css("marginTop", `${$(".tyhder_herader>nav").css("height")}`)
+ $(".tyhder_moban").css("top", `${$(".tyhder_herader>nav").css("height")}`)
+ } else if (getScrollTop() < $(".tyhder_herader>img").css("height").split("px")[0]) {
$(".pod").css("position", "relative")
$(".pod").removeClass("dtip")
-
+ $(".mian").css("marginTop", "0px")
+ $(".tyhder_moban").css("top", `0px`)
+ $(".tyhder_listnavpad").css("top",`${$(".tyhder_herader>nav").css("height")}`)
}
-}
+}
+$(function navdao(params) {
+ // ---
+ let navif = true
+ $(".tyhder_btntopimg").on("click", (e) => {
+ if (navif) {
+ $(".tyhder_moban").css("display", "block")
+ $(".ty_listnav").addClass("ty_listnavPosition")
+ $(".ty_btntopimg").addClass("trans90")
+ $(".tyhder_listnav").addClass("tyhder_listnavpad")
+ $(".tyhder_listnavpad").css("top",`${$(".tyhder_herader").css("height")}`)
+ } else {
+ $(".tyhder_moban").css("display", "none")
+ }
+
+ })
+
+})