jquery-保持悬停状态

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jquery-保持悬停状态相关的知识,希望对你有一定的参考价值。

keeps hover states on for top level dropdown menu items or accordions
  1. // keep hover statea on
  2. $("#mainnav li").hover(function(){
  3. $(this).addClass("on");
  4. }, function(){
  5. $(this).removeClass("on");
  6. });

以上是关于jquery-保持悬停状态的主要内容,如果未能解决你的问题,请参考以下文章