Line 52: | Line 52: | ||
$(".dropdown").hover(function() { | $(".dropdown").hover(function() { | ||
$('.dropdown-menu', this).stop(true,true).slideToggle("fast"); | $('.dropdown-menu', this).stop(true,true).slideToggle("fast"); | ||
+ | }); | ||
+ | // 改导航栏css | ||
+ | $(".dropdown-menu").mouseenter(function(){ | ||
+ | $(this).prev().css("color","white"); | ||
+ | }); | ||
+ | $(".dropdown-menu").mouseleave(function(){ | ||
+ | $(this).prev().css("color","rgb(151,155,158)"); | ||
}); | }); | ||
// 滚动渐隐 | // 滚动渐隐 |
Revision as of 18:22, 21 October 2019