Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是示例-> codepen
我的问题是如何激活class="active"悬停功能不适用于此按钮class="active"
class="active"
只需更改此行:
$("nav ul li a").hover(function(){
像这样:
$("nav ul li a:not(.active)").hover(function(){
见这里:http ://codepen.io/anon/pen/ehosj