表格样式:
style type="text/css">
table.datalist
{
border-collapse: collapse;
border: none;
width: 100%;
font-family:宋体;
}
table.datalist tbody tr.even{
background-color:#EEEEEE;
}
table.datalist tbody tr.odd{
}
table.datalist td,table.datalist th
{
border: solid #999999 1px;
padding:3px;
}
table.datalist tbody tr td{
font-size:12px;
color:#444444;
height:25px;
}
table.datalist thead tr th{
background:url('th-bg.gif') repeat-x;
height:25px;
font-size:12px;
font-weight:bold;
color:#666666;
}
style>
效果如下: