前几天Insus.NET有练习《http://www.cnblogs.com/insus/p/3715733.html ,今天有奇想,是否可以实现mouse经过表的列时,整列高亮呢?

Insus.NET就在前一示例中,修心jQuery来练习。 修改.mouseover和.mouseout的事件代码:

 $('tbody td').mouseover(function () {            
            $('td:nth-child(' + ($(this).index() + 1) + ')').addClass('overStyle');            
        }).mouseout(function () {            
            $('td:nth-child(' + ($(this).index() + 1) + ')').removeClass('overStyle');
        })
View Code

相关文章:

  • 2021-08-28
  • 2021-07-15
  • 2022-12-23
  • 2022-02-04
  • 2021-12-09
  • 2021-08-08
  • 2022-12-23
  • 2021-04-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2022-01-24
  • 2022-12-23
  • 2021-09-18
相关资源
相似解决方案