在网页代码中<tr>…</tr>是用来定义();<td>…</td>是用来定义();<th>…</th>是用来定义(
2个回答
展开全部
tr是用来定义表格的行;
td是用来定义表格的列;
th是用来定义表格的表头;
举例:
<form name="search" method="post" action="${ctx}/manage/view/managerLog" >
<table class="table_common" cellspacing="1" cellpadding="0">
<TR class="title_tr">
<TH width="10%" style="white-space: nowrap; text-align: center;"><SPAN><BOC:I18N name="procName"/></SPAN></TH>
</TR >
<TR class="title_tr">
<TH width="10%" style="white-space: nowrap; text-align: center;"><SPAN><BOC:I18N name="procName"/></SPAN></TH>
<TH width="10%" style="white-space: nowrap; text-align: center;"><SPAN><BOC:I18N name="fromTable"/></SPAN></TH>
</TR >
<tr class="info_tr">
<td style="white-space: nowrap; text-align: center;"><%=procName%></td>
<td style="white-space: nowrap; text-align: center;"><%=fromTable%></td>
</tr>
</table>
</form>
td是用来定义表格的列;
th是用来定义表格的表头;
举例:
<form name="search" method="post" action="${ctx}/manage/view/managerLog" >
<table class="table_common" cellspacing="1" cellpadding="0">
<TR class="title_tr">
<TH width="10%" style="white-space: nowrap; text-align: center;"><SPAN><BOC:I18N name="procName"/></SPAN></TH>
</TR >
<TR class="title_tr">
<TH width="10%" style="white-space: nowrap; text-align: center;"><SPAN><BOC:I18N name="procName"/></SPAN></TH>
<TH width="10%" style="white-space: nowrap; text-align: center;"><SPAN><BOC:I18N name="fromTable"/></SPAN></TH>
</TR >
<tr class="info_tr">
<td style="white-space: nowrap; text-align: center;"><%=procName%></td>
<td style="white-space: nowrap; text-align: center;"><%=fromTable%></td>
</tr>
</table>
</form>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询