优化导航栏、分享海报等显示效果;优化代码及性能
This commit is contained in:
@@ -361,10 +361,9 @@ function mu_box_show() {
|
||||
function mu_box_hide(time = 2000) {
|
||||
clearTimeout(trigger);
|
||||
trigger = setTimeout(function () {
|
||||
// 获取屏幕宽度判断是否为手机端(与歌词容器响应式逻辑保持一致)
|
||||
const isMobile = $(window).width() <= 767;
|
||||
// 手机端隐藏时额外向下偏移50px(可根据需要调整数值),非手机端保持默认0px
|
||||
const hideTop = isMobile ? "50px" : "0px";
|
||||
const hasBottomMenu = $(window).width() <= 960;
|
||||
// 底部导航可见时,播放器收起到导航栏后面。
|
||||
const hideTop = hasBottomMenu ? "50px" : "0px";
|
||||
|
||||
// 执行隐藏动画
|
||||
$('.footer_nav_box').animate({
|
||||
|
||||
Reference in New Issue
Block a user