1.想左边"A+B"占两列对应右边"A"和"B"俩行的,A.B是<tr>循环处理的,为什么这样写B那一行包不进去呢。
<tr>
<td rowspan="2" align="center"> A+B</td>
<td>
<tr height="20"> <span>
<td nowrap="nowrap"> A</td>
<td nowrap="nowrap">100 </td>
</span>
</tr>
<tr height="20"> <span>
<td nowrap="nowrap">B </td>
<td nowrap="nowrap">10 </td>
</span>
</tr>
</td>
</tr>
2.<tr>循环中套<tr>循环,每次循环前都会空出一行。
<tr height="20">
<th rowspan="7" align="center"> A(B)循环</th>
<td nowrap="nowrap">类型 </td>
<td>值</td>
</tr>
<tr height="20">
<tr>
<td nowrap="nowrap">A1 </td>
<td>A</td>
</tr>
<tr height="20">
<td nowrap="nowrap">B1 </td>
<td nowrap="nowrap">0.3 </td>
</tr>
</tr><tr height="20">
<tr>
<td nowrap="nowrap">A2 : </td>
<td>B</td>
</tr>
<tr height="20">
<td nowrap="nowrap">B2</td>
<td nowrap="nowrap">1.3 </td>
</tr>
</tr>
<tr height="20">
<tr>
<td nowrap="nowrap">A3 : </td>
<td/>
</tr>
<tr height="20">
<td nowrap="nowrap">B31</td>
<td nowrap="nowrap">0.2 </td>
</tr>
<tr height="20">
<td nowrap="nowrap">B32</td>
<td nowrap="nowrap">1 </td>
</tr>
</tr>
用SPAN或者DIV标签去替换最外层的<TR>可去除空行,但要展示的字没了。
弄了俩天了还没整好,特求大牛帮忙~~