写<td></td>吧
然后设置<td>的属性style,把边宽度设置成0

解决方案 »

  1.   

    这个简单啊 
    if(i==4)
    {
      </tr><tr>
    }
      

  2.   

    看我这个例子你就知道了
    <table>
    <tr>
      <%
        int b = -1;
      %>
    <logic:iterate id="p1" name="list1" type="com.onest.sale.entity.Dutyperson" scope="request">
     <%
               b++;
    if (b % 3 == 0) {
     %>
      </tr>//-----------这里是重点,就在这换行了。
      <tr>>//-----------这里是重点。 <%
    }
    %>
    <td>
    <input type="checkbox" name="checkbox1" id="checkbox1" value="${p1.name},${p1.useraccountid }" onclick="if (this.checked){document.getElementById(${p1.useraccountid}).style.display='block';findPosition(${p1.useraccountid })}else{document.getElementById(${p1.useraccountid}).style.display='none'};" />
    ${p1.name }(${p1.mobile })
    <div id="${p1.useraccountid}"></div>
    </td>
    </logic:iterate>
    </tr>
    </table>
      

  3.   


    <table width="100%" ……>
    <%
        for (int i = 0; i < totalRecords; i++) {
            if (i % 4 == 0) {
    %>
                 <tr>       // 每4条记录就用<tr>换行
           <% } %>
                 <td ……> ……</td>
                 <td ……> ……</td>
                 <td ……> ……</td>
                 <td ……> ……</td>
           <%if (i + 1) % 4 == 0) {%>
                 </tr>
           <% } %>
    <% } %>
    </table>