mirror of https://gitee.com/topnuomi/zxf
修改header效果
This commit is contained in:
parent
d4da90bc6f
commit
020a075151
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue