怎么才能生成以前正常的表格呢?
我想生成这样的表格:
<table cellspacing= "1 " cellpadding= "0 " width= "100% " bgcolor= "#63747c " border= "0 ">
<tr bgcolor= "#f2f2f2 ">
<td align= "center " height= "22 "> 日期 </td>
<td align= "center " height= "22 "> 所有视频播放次数 </td>
<td align= "center " height= "22 "> 广告投放次数 </td>
</tr>
<---循环体>
<tr bgcolor= '#fafafa '> <td align= 'center ' height= '22 '> </td> <td align= 'right ' height= '22 '>
</td> <td align= 'right ' height= '22 '>
</td> </tr> <tr bgcolor= '#fafafa '> <td align= 'center ' height= '22 '> </td> <td align= 'right ' height= '22 '>
</td> <td align= 'right ' height= '22 '>
</td> </tr> <tr bgcolor= '#fafafa '> <td align= 'center ' height= '22 '> </td> <td align= 'right ' height= '22 '>
</td> <td align= 'right ' height= '22 '>
</td> </tr>
<---循环体>
</table>
用datalist控件生成的都带个table,导致生面的属性框跟下面列出来的数据不能在一个表格里,很难看而且有时候对不齐!!谁有办法解决一下!!不胜感激!!!
<table id= "DataList1 " cellspacing= "0 " align= "center " border= "0 " style= "width:98%;border-collapse:collapse; ">
<tr>
<td>
<tr bgcolor= "#fafafa " onMouseOver= "this.bgcolor = '#ebebeb ' " onMouseOut= "this.bgcolor = '#fafafa ' ">
<td width= "10% " height= "20 " align= "center "> test </td>
<td width= "11% " align= "center "> hndxdd </td>
<td width= "12% " align= "center "> acc </td>