1.实例:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>jquey实现表格隔行变色及鼠标滑过变色.html</title>
<link rel="stylesheet" href="css/font.css">
<link rel="stylesheet" href="css/table.css">
<script src="js/jquery-2.2.3.min.js"></script>
<script type="text/javascript">
$(function(){
//添加tr基数背景色样式
$("#title tr:even").css("background","#999");
//even:设置tr基数背景色
$("#title tr:even").attr("bg","#999");
//odd:设置tr偶数背景色
$("#title tr:odd").attr("bg","#fff");
//mouseover():鼠标滑动事件,设置tr背