找到sking/js/custom.js
注释掉这个
或全目录搜索,#wrapper关键字。即可找到。
把起作用的这段进行注释。
/* 去掉跳转效果
//菜单动态切换页面效果
$(".main-nav li a, .logo a").click(function(){
if( $(this).attr("target") != "_blank"){
if( $(this).attr("href") != "javascript:;" && $(this).attr("href") != "#" )
return openwork($(this).attr("href"));
}
});
function openwork(url){
$("#wrapper").css({'-webkit-animation':"bounceIn 0.5s .25s ease both",'-moz-animation':'bounceIn 1s .25s ease both','animation':'bounceIn 0.5s .25s ease both'});
$("body").append("<div class='page-cover'></div>").css("position","relative");
$(".page-cover").delay(600).animate({"height":$(document).height()},800,null,function(){
location.href = url;
});
return false
};
*/
本文介绍如何在sking/js/custom.js中找到并注释掉特定代码,以禁用网页中菜单动态切换页面的跳转效果。通过注释#wrapper关键字相关代码,可以消除页面间的过渡动画,适用于需要优化用户体验或解决兼容性问题的场景。
&spm=1001.2101.3001.5002&articleId=89173586&d=1&t=3&u=676cb1a6d5e54d2a90740184cb7f1300)
7万+

被折叠的 条评论
为什么被折叠?



