<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script language="javascript" src="../jquery-1.11.1.min.js"></script>
</head>
<body>
<table width="90%" border="1px" align="center" cellpadding="1" cellspacing="1" bgcolor="aquamarine">
<tr>
<td width="11%" height="29">编号</td>
<td width="15%">祝福对象</td>
<td width="12%">祝福者</td>
<td width="35%"> 字条内容</td>
<td width="33%">发送时间</td>
</tr>
<tr>
<td height="29">1</td>
<td>琦琦</td>
<td>妈妈</td>
<td>祝你健康成长</td>
<td>2019-11-28</td>
</tr>
<tr>
<td height="29">2</td>
<td>琦琦</td>
<td>妈妈</td>
<td>祝你健康成长</td>
</tr>
<tr>
<td height="29">3</td>
<td>琦琦</td>
<td>妈妈</td>
<td>祝你健康成长</td>
<td>2019-11-28</td>
</tr>
<tr>
<td height="29">4</td>
<td>琦琦</td>
<td>妈妈</td>
<td>祝你健康成长</td>
<td>2019-11-28</td>
</tr>
</table>
<style type="text/css">
td{
font-size:27px;
padding:3px;
}
.th{
background-color: aqua;
font-weight: bold;
text-align: center;
}
.even{
background-color: bisque;
}
.odd{
background-color: cornflowerblue;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$("tr:even").addClass("even");
$("tr:odd").addClass("odd");
$("tr:first").removeClass("even");
$("tr:first").addClass("th");
})
</script>
</body>
</html>