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.
我需要一个导航,当我鼠标移出时,等待 1 秒,然后隐藏,
我在这里得到了我的代码
http://jsfiddle.net/xR83q/
但它不能正常工作
你能告诉我我做错了什么吗?
使用mouseenterandmouseleave代替 - 将最后两行更改为:
mouseenter
mouseleave
$j('#menu-navegacion-principal > li') .bind('mouseenter', navIn) .bind('mouseleave', navOut); $j('#menu-navegacion-principal > li:has(ul)') .bind('mouseenter', navInS) .bind('mouseleave', navOutS)