摘要: 只用在上篇(http://www.cnblogs.com/wenzichiqingwa/archive/2012/12/03/2799350.html)的基础上做些修改即可:把click方法里‘隐藏效果的代码’改成如下: $('table th:not(:nth-child('+(col_index+1)+'))').hide(); $('table td:not(:nth-child('+(col_index+1)+'))').hide();即可。:not方法,参考手册 阅读全文
posted @ 2012-12-03 11:56 蚊子吃青蛙 阅读(479) 评论(0) 推荐(0) 编辑
摘要: NUM1:隐藏当前选中的行(点击当前选中行)NUM2:隐藏当前选中的列(点击列标题)在前两篇的基础上加一些代码,大部分都相同。HTML:View Code <table border="1"> <thead> <tr> <th>姓名</th> <th>年龄</th> <th>性别</th> </tr> </thead> <tbody> ... 阅读全文
posted @ 2012-12-03 11:48 蚊子吃青蛙 阅读(4922) 评论(0) 推荐(0) 编辑
摘要: 描述:鼠标悬停列标题,改变该列的背景色HTML:<table border="1"> <thead> <tr> <th>姓名</th> <th>年龄</th> <th>性别</th> </tr> </thead> <tbody> <tr> <td>小文</td> ... 阅读全文
posted @ 2012-12-03 11:33 蚊子吃青蛙 阅读(2416) 评论(1) 推荐(0) 编辑
摘要: NUM1:鼠标悬停改变改变行背景;NUM2:隔行换色;HTML:<table border="1"> <thead> <tr> <th>姓名</th> <th>年龄</th> <th>性别</th> </tr> </thead> <tbody> <tr> <td>小文</td> ... 阅读全文
posted @ 2012-12-03 11:23 蚊子吃青蛙 阅读(1210) 评论(0) 推荐(0) 编辑