【发布时间】:2011-09-05 11:14:09
【问题描述】:
我想增加表头行和表中第一行之间的空间。我该怎么做?
我有以下:
<asp:Repeater ID="myRepeater" runat="server" >
<HeaderTemplate>
<table style="width:100%;" border="0" cellpadding="0" cellspacing="0">
<thead>
<tr align="left">
<th style="width:15%">
Column 1
</th>
<th style="width:15%">
Column 2
</th>
<th style="width:15%">
Column 3
</th>
</tr>
</thead>
</HeaderTemplate>
<ItemTemplate>
<tbody style="padding-top: 50px;">
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</ItemTemplate>
<SeparatorTemplate>
<tr style="padding-bottom: 30px;">
<td colspan="7" style="padding-bottom: 20px; padding-top: 20px;">
<hr style="width:100%" /></td>
</tr>
</SeparatorTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
如您所见,我添加了<style="padding-top: 50px;">
到表格主体,但这不起作用。
【问题讨论】:
标签: html asp.net html-table repeater