令人头疼的问题<table width="100%" border="1" cellpadding="0" cellspacing="1" align="center"  class="table">
<tr><td>
  <table width="100%" border="1" cellpadding="0" cellspacing="1" align="center"  class="table">
    <tr>
      <td width="5%" class="STYLE5 title"  align="center">
          <input type="checkbox" name="checkbox1" onClick="selectAllfp()" >
      </td>
      <td width="10%" class="STYLE5 title">发票号码</td>
      <td width="10%" class="STYLE5 title">日期</td>
      <td width="12%" class="STYLE5 title">合同号</td>
      <!--td width="100" class="STYLE5 title">供方单位</td-->
      <td width="15%" class="STYLE5 title">物资</td>
      <td width="8%" class="STYLE5 title">数量</td>
      <td width="10%" class="STYLE5 title">单价</td>
      <td width="10%" class="STYLE5 title">税额</td>
      <td width="10%" class="STYLE5 title">价税合计</td>
    </tr>
  </table>
</td></tr>
<tr><td>
  <div style="overflow:auto;width:100%;height:150">
    <logic:present name = "cgfpDto">
      <table  width="100%" border="1" cellpadding="0" cellspacing="1" align="center" class="table">
        <logic:iterate id="sr" name="cgfpDto" indexId="inde">
          <tr>
            <td width="5%" class="STYLE2 feild" align="center">
                <input type="hidden" name="fpsl" value="0"/>
              </td>
              <td width="10%" class="STYLE2 feild"><bean:write name="sr" property="forth"/>&nbsp;</td>
              <td width="10%" class="STYLE2 feild" align="center"><bean:write name="sr" property="second"/>&nbsp;</td>
              <td width="12%" class="STYLE2 feild"><bean:write name="sr" property="third"/>&nbsp;</td>
              <td width="15%" class="STYLE2 feild"><bean:write name="sr" property="fifth"/>&nbsp;</td>
              <td width="8%" class="STYLE2 feild" align="right">&nbsp;<bean:write name="sr" property="sixth"/></td>
              <td width="10%" class="STYLE2 feild" align="right">&nbsp;<bean:write name="sr" property="seventh"/></td>
              <td width="10%" class="STYLE2 feild" align="right">&nbsp;<bean:write name="sr" property="eighth"/></td>
              <td width="10%" class="STYLE2 feild" align="right">&nbsp;<bean:write name="sr" property="ninth"/></td>
          </tr>
        </logic:iterate>
      </table>
    </logic:present>
  </div>
</td></tr>
</table>
显示的效果为
但是当数据量查询大的时候 就出现了一块空白,使得页面非常难看
不知道怎么搞,令人头疼,请高手们指教,小的不甚感激

解决方案 »

  1.   

    <div style="overflow:auto;width:100%;height:150">
    =〉
    <div style="overflow:auto;width:100%;height:100%">你指定的高度为150,这怎么够用!!!
      

  2.   

    哦,我没来的及看,我上传得图片牛怎么没显示出来呀
    描述一下吧:就是div限制了一块后,使表体数据都显示到DIV中,当数据量不太大时,没有问题,一切正常,但是当数据量大时
    表体中的内容就不是正常显示在DIV中,而在在表体的第一行上边出现的一块空白,有时,空白占的地方还挺大回复一楼:这个不是分页,只是实现表格头不动,表体可以滚动的功能;
    回复三楼:由于该页面这样的表格要显示三个,所以高度指定的比较小,为150