- 论坛徽章:
- 0
|
需要保留一个tr中第1,2个和最后一个td, 该如何写呢, 方法不限
附: td内的部分不是固定的,每个tr内td的数量不是固定的.
如下:
<tr>
<td class="fieldheader" width="100%" align="left" valign="top">Fields</td>
</tr>
<tr>
<td align="center" valign="top" class="fieldcolumn">Field</td>
<td align="center" valign="top" class="fieldcolumn">Type</td>
<td align="center" valign="top" class="fieldcolumn">Collation</td>
<td align="center" valign="top" class="fieldcolumn">Null</td>
<td align="center" valign="top" class="fieldcolumn">Key</td>
<td align="center" valign="top" class="fieldcolumn">Default</td>
<td align="center" valign="top" class="fieldcolumn">Extra</td>
<td align="center" valign="top" class="fieldcolumn">Comment</td>
</tr>
处理后为
<tr>
<td class="fieldheader" width="100%" align="left" valign="top">Fields</td>
</tr>
<tr>
<td align="center" valign="top" class="fieldcolumn">Field</td>
<td align="center" valign="top" class="fieldcolumn">Type</td>
<td align="center" valign="top" class="fieldcolumn">Comment</td>
</tr> |
|