.rowSpan
    ^

解决方案 »

  1.   

    <table name="tbl" id="tbl">
    </tr>
    <%
    ssql="select ..."
    dbrst.open ssql,1,1
    dim task_type
    if dbrst.recordcount>0 then
    for i=0 to dbrst.recordcount-1
    %>
    <tr> 
    <td nowrap id="td_type<%=i%>">&nbsp;<%=trim(dbrst("type"))%></td>
    <td nowrap>&nbsp; <%=trim(dbrst("ctaskdes"))%></td>
    <td nowrap align="center">&nbsp;<%=trim(dbrst("dcost_fact"))%></td>
    <td nowrap align="center">&nbsp;<%=trim(dbrst("cstate"))%></td>
    </tr>
    <%
    if trim(dbrst("type"))=task_type then
    %>
    <script language=javascript>
    document.tbl.td_type<%=i-1%>.rowSpan=document.tbl.td_type<%=i-2%>.rowSpan+1;
    </script>
    <%
    end if
    task_type=trim(dbrst("type"))
    dbrst.movenext
    next
    end if
    %>
    </table>
    为何不行???
      

  2.   

    document.all.tableId.rows[i].cells[j].rowSpan = 4; //表格第 i+1 行第 j+1 列