<style type="text/css">
table
{
margin: 0 auto;
width: 600px;
}
table
{
border: 1px solid #000;
}
table tr th
{
height: 28px;
line-height: 28px;
background: #999;
}
table.stripe tr td
{
height: 28px;
line-height: 28px;
text-align: center;
background: #FFF;
vertical-align: middle;
}
/* 默认背景被白色 */
table.stripe tr.alt td
{
background: #F2F2F2;
}
/* 默认隔行背景颜色 */
table.stripe tr.over td
{
background: #EEECEB;
}
/* 鼠标经过时候背景颜色 */

</style>
<script type="text/javascript">
$(document).ready(function () {

$(".stripe tr").mouseover(function () {
$(this).addClass("over");
}).mouseout(function () {
$(this).removeClass("over");
})
$(".stripe tr:even").addClass("alt");

});

</script>

<table id="table" class="stripe">
<tr>
<td>
活动主题
</td>
<td>
获得
</td>
</tr>
<tr>
<td>
活动主题
</td>
<td>
</td>
</tr>
<tr>
<td>
活动主题
</td>
<td>
</td>
</tr>
</table>

最新文章

  1. iOS系列 基础篇 02 StoryBoard 故事板文件
  2. shell简单用法笔记(shell中数值运算)二
  3. Intellij修改archetype Plugin配置
  4. hdu1269迷宫城堡(判断有向图是否是一个强连通图)
  5. Cordova webapp实战开发:(4)Android环境搭建
  6. 【WPF】WPF通过RelativeSource绑定父控件的属性
  7. C# return dynamic/anonymous type value as function result
  8. 【OpenCV】基于kmeans的细胞检测方法
  9. 一天一个类,一点也不累之HashSet
  10. maven入门(9)Maven常用命令
  11. 【Selenium】【BugList6】调用IE,未启用保护模式,报:selenium.common.exceptions.WebDriverException: Message: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones.
  12. CPP之内存分配
  13. 用python实现数学多元数学方程式计算
  14. flask_mysql入库
  15. delphi ribbon使用
  16. postgresql相关开源软件及架构简介
  17. thinkphp5.0返回插入数据id
  18. 封装自己的yQuery
  19. polymer入门例子-已过时
  20. ethtool命令详解

热门文章

  1. 图片工具picpick
  2. 终于遇到了传说的ie 6 img 3px的bug
  3. python的递归算法学习(3):汉诺塔递归算法
  4. oracle修改字段类型由varchar2修改为clob类型
  5. react 使用antd的TreeSelect树选择组件实现多个树选择循环
  6. HDU 2955 【01背包/小数/概率DP】
  7. [POI2010]Beads
  8. Linux Whois命令安装与使用
  9. ScrollView起始位置不是最顶部的解决办法
  10. 【MySQL】undo,redo,2PC,恢复思维导图