修改header效果

This commit is contained in:
TOP糯米 2023-10-12 11:56:50 +08:00
parent d4da90bc6f
commit 020a075151
1 changed files with 4 additions and 4 deletions

View File

@ -21,11 +21,11 @@ function rszcal() {
function headerEffect() {
let t = $(document).scrollTop(), flag;
if (!isMobile) {
flag = t > 4 * currentRem;
} else {
// if (!isMobile) {
// flag = t > 2.5 * currentRem;
// } else {
flag = t > 2.5 * currentRem;
}
// }
if (flag) {
header.removeClass('style1').addClass('style2');
} else {