toggle影响a标签跳转问题
toggle影响a标签跳转,nav-parent>li>a,a没法实现超链接。$(function(){$('.nav-son').css('display','none...
toggle影响a标签跳转,nav-parent>li>a, a没法实现超链接。
$(function(){
$('.nav-son').css('display','none');
$('.nav-parent>li>a').toggle(function(){
$(this).addClass('active');
$(this).next().slideDown();
$(this).children('em').css("transition","transform 0.2s linear 0s").css("transform","rotate(-90deg)");
$('.nav-son>li').mouseover(function(){
$(this).children('a').addClass('son-current');
}).mouseout(function(){
$(this).children('a').removeClass('son-current')
});
},function(){
$(this).removeClass('active');
$(this).next('.nav-son').slideUp();
$(this).children('em').css("transition","transform 0.2s linear 0s").css("transform","rotate(0deg)");
});
});
要怎么解决 展开
$(function(){
$('.nav-son').css('display','none');
$('.nav-parent>li>a').toggle(function(){
$(this).addClass('active');
$(this).next().slideDown();
$(this).children('em').css("transition","transform 0.2s linear 0s").css("transform","rotate(-90deg)");
$('.nav-son>li').mouseover(function(){
$(this).children('a').addClass('son-current');
}).mouseout(function(){
$(this).children('a').removeClass('son-current')
});
},function(){
$(this).removeClass('active');
$(this).next('.nav-son').slideUp();
$(this).children('em').css("transition","transform 0.2s linear 0s").css("transform","rotate(0deg)");
});
});
要怎么解决 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询