只显示4条记录时,生成的html结果如下:(由于太长,需要分贴,如果想看一下结果麻烦合起来保存到一个html文件中):
<html>
<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <style type="text/css">
    a {text-decoration: none}
  </style>
</head>
<body text="#000000" link="#000000" alink="#000000" vlink="#000000">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td width="50%">&nbsp;</td><td align="center"><a name="JR_PAGE_ANCHOR_0_1"/>
<table style="width: 595px" cellpadding="0" cellspacing="0" border="0" bgcolor="white">
<tr>
  <td><img alt="" src="test.html_files/px" style="width: 30px; height: 1px;"/></td>
  <td><img alt="" src="test.html_files/px" style="width: 24px; height: 1px;"/></td>
  <td><img alt="" src="test.html_files/px" style="width: 57px; height: 1px;"/></td>
  <td><img alt="" src="test.html_files/px" style="width: 29px; height: 1px;"/></td>
  <td><img alt="" src="test.html_files/px" style="width: 109px; height: 1px;"/></td>
  <td><img alt="" src="test.html_files/px" style="width: 48px; height: 1px;"/></td>
  <td><img alt="" src="test.html_files/px" style="width: 17px; height: 1px;"/></td>
  <td><img alt="" src="test.html_files/px" style="width: 80px; height: 1px;"/></td>
  <td><img alt="" src="test.html_files/px" style="width: 171px; height: 1px;"/></td>
  <td><img alt="" src="test.html_files/px" style="width: 30px; height: 1px;"/></td>
</tr>
<tr valign="top">
  <td colspan="10"><img alt="" src="test.html_files/px" style="width: 595px; height: 32px;"/></td>
</tr>
<tr valign="top">
  <td colspan="4"><img alt="" src="test.html_files/px" style="width: 140px; height: 33px;"/></td>
  <td><span style="font-family: 宋体; font-size: 18.0px; font-weight: bold;">银行表</span></td>
  <td colspan="5"><img alt="" src="test.html_files/px" style="width: 346px; height: 33px;"/></td>
</tr>
<tr valign="top">
  <td colspan="10"><img alt="" src="test.html_files/px" style="width: 595px; height: 62px;"/></td>
</tr>
<tr valign="top">
  <td colspan="2"><img alt="" src="test.html_files/px" style="width: 54px; height: 20px;"/></td>
  <td rowspan="2"><span style="font-family: sansserif; font-size: 10.0px;">银行代号</span></td>
  <td colspan="4"><img alt="" src="test.html_files/px" style="width: 203px; height: 20px;"/></td>
  <td><span style="font-family: sansserif; font-size: 10.0px;">银行名称</span></td>
  <td colspan="2"><img alt="" src="test.html_files/px" style="width: 201px; height: 20px;"/></td>
</tr>
<tr valign="top">
  <td colspan="2"><img alt="" src="test.html_files/px" style="width: 54px; height: 5px;"/></td>
  <td colspan="7"><img alt="" src="test.html_files/px" style="width: 484px; height: 5px;"/></td>
</tr>
<tr valign="top">
  <td colspan="10"><img alt="" src="test.html_files/px" style="width: 595px; height: 5px;"/></td>
</tr>
<tr valign="top">
  <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
  <td colspan="5" rowspan="2" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">1</span></td>
  <td colspan="3" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">中国银行</span></td>
  <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
</tr>
<tr valign="top">
  <td><img alt="" src="test.html_files/px" style="width: 30px; height: 1px;"/></td>
  <td colspan="4"><img alt="" src="test.html_files/px" style="width: 298px; height: 1px;"/></td>
</tr>
<tr valign="top">
  <td colspan="10"><img alt="" src="test.html_files/px" style="width: 595px; height: 68px;"/></td>
</tr>

解决方案 »

  1.   

    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
      <td colspan="5" rowspan="2" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">2</span></td>
      <td colspan="3" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">建设银行</span></td>
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 1px;"/></td>
      <td colspan="4"><img alt="" src="test.html_files/px" style="width: 298px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="10"><img alt="" src="test.html_files/px" style="width: 595px; height: 68px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
      <td colspan="5" rowspan="2" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">3</span></td>
      <td colspan="3" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">农业银行</span></td>
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 1px;"/></td>
      <td colspan="4"><img alt="" src="test.html_files/px" style="width: 298px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="10"><img alt="" src="test.html_files/px" style="width: 595px; height: 68px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
      <td colspan="5" rowspan="2" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">4</span></td>
      <td colspan="3" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">工商银行</span></td>
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 1px;"/></td>
      <td colspan="4"><img alt="" src="test.html_files/px" style="width: 298px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="10"><img alt="" src="test.html_files/px" style="width: 595px; height: 373px;"/></td>
    </tr>
    </table></td><td width="50%">&nbsp;</td></tr>
    </table>
    </body>
    </html>
      

  2.   

    显示全部7条记录时生成的html结果如下,您可以直接复制到一个html文件,打开察看,可以发现显示很奇怪(还是要分贴):
    <html>
    <head>
      <title></title>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      <style type="text/css">
        a {text-decoration: none}
      </style>
    </head>
    <body text="#000000" link="#000000" alink="#000000" vlink="#000000">
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr><td width="50%">&nbsp;</td><td align="center"><a name="JR_PAGE_ANCHOR_0_1"/>
    <table style="width: 595px" cellpadding="0" cellspacing="0" border="0" bgcolor="white">
    <tr>
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 24px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 57px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 29px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 109px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 48px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 17px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 7px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 57px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 16px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 170px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 1px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 16px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 14px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 66px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 171px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="16"><img alt="" src="test.html_files/px" style="width: 832px; height: 32px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="4"><img alt="" src="test.html_files/px" style="width: 140px; height: 33px;"/></td>
      <td><span style="font-family: 宋体; font-size: 18.0px; font-weight: bold;">银行表</span></td>
      <td colspan="11"><img alt="" src="test.html_files/px" style="width: 583px; height: 33px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="16"><img alt="" src="test.html_files/px" style="width: 832px; height: 62px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="2"><img alt="" src="test.html_files/px" style="width: 54px; height: 20px;"/></td>
      <td rowspan="2"><span style="font-family: sansserif; font-size: 10.0px;">银行代号</span></td>
      <td colspan="5"><img alt="" src="test.html_files/px" style="width: 210px; height: 20px;"/></td>
      <td rowspan="2"><span style="font-family: sansserif; font-size: 10.0px;">银行代号</span></td>
      <td colspan="4"><img alt="" src="test.html_files/px" style="width: 203px; height: 20px;"/></td>
      <td colspan="2"><span style="font-family: sansserif; font-size: 10.0px;">银行名称</span></td>
      <td><img alt="" src="test.html_files/px" style="width: 171px; height: 20px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="2"><img alt="" src="test.html_files/px" style="width: 54px; height: 5px;"/></td>
      <td colspan="5"><img alt="" src="test.html_files/px" style="width: 210px; height: 5px;"/></td>
      <td colspan="7"><img alt="" src="test.html_files/px" style="width: 454px; height: 5px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="16"><img alt="" src="test.html_files/px" style="width: 832px; height: 5px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
      <td colspan="5" rowspan="2" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">1</span></td>
      <td colspan="5" rowspan="2" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">7</span></td>
      <td colspan="5" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">中信银行</span></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 1px;"/></td>
      <td colspan="5"><img alt="" src="test.html_files/px" style="width: 268px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="16"><img alt="" src="test.html_files/px" style="width: 832px; height: 68px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
      <td colspan="5" rowspan="2" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">2</span></td>
      <td colspan="6" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">建设银行</span></td>
      <td colspan="4"><img alt="" src="test.html_files/px" style="width: 267px; height: 26px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 1px;"/></td>
      <td colspan="10"><img alt="" src="test.html_files/px" style="width: 535px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="16"><img alt="" src="test.html_files/px" style="width: 832px; height: 68px;"/></td>
    </tr>
      

  3.   

    晕,只能连续回复3次,用马夹继续贴:
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
      <td colspan="5" rowspan="2" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">3</span></td>
      <td colspan="6" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">农业银行</span></td>
      <td colspan="4"><img alt="" src="test.html_files/px" style="width: 267px; height: 26px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 1px;"/></td>
      <td colspan="10"><img alt="" src="test.html_files/px" style="width: 535px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="16"><img alt="" src="test.html_files/px" style="width: 832px; height: 68px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
      <td colspan="5" rowspan="2" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">4</span></td>
      <td colspan="6" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">工商银行</span></td>
      <td colspan="4"><img alt="" src="test.html_files/px" style="width: 267px; height: 26px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 1px;"/></td>
      <td colspan="10"><img alt="" src="test.html_files/px" style="width: 535px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="16"><img alt="" src="test.html_files/px" style="width: 832px; height: 68px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
      <td colspan="5" rowspan="2" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">5</span></td>
      <td colspan="6" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">交通银行</span></td>
      <td colspan="4"><img alt="" src="test.html_files/px" style="width: 267px; height: 26px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 1px;"/></td>
      <td colspan="10"><img alt="" src="test.html_files/px" style="width: 535px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="16"><img alt="" src="test.html_files/px" style="width: 832px; height: 68px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 26px;"/></td>
      <td colspan="5" rowspan="2" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">6</span></td>
      <td colspan="6" style="border-top-style: solid; border-top-width: 1px; border-top-color: #000000; border-left-style: solid; border-left-width: 1px; border-left-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #000000; border-right-style: solid; border-right-width: 1px; border-right-color: #000000; "><span style="font-family: sansserif; font-size: 10.0px;">民生银行</span></td>
      <td colspan="4"><img alt="" src="test.html_files/px" style="width: 267px; height: 26px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 30px; height: 1px;"/></td>
      <td colspan="10"><img alt="" src="test.html_files/px" style="width: 535px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="16"><img alt="" src="test.html_files/px" style="width: 832px; height: 183px;"/></td>
    </tr>
    </table>
      

  4.   

    最后一部分:
    <br/>
    <br/><a name="JR_PAGE_ANCHOR_0_2"/>
    <table style="width: 595px" cellpadding="0" cellspacing="0" border="0" bgcolor="white">
    <tr>
      <td><img alt="" src="test.html_files/px" style="width: 54px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 57px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 203px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 80px; height: 1px;"/></td>
      <td><img alt="" src="test.html_files/px" style="width: 201px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="5"><img alt="" src="test.html_files/px" style="width: 595px; height: 77px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 54px; height: 20px;"/></td>
      <td rowspan="2"><span style="font-family: sansserif; font-size: 10.0px;">银行代号</span></td>
      <td><img alt="" src="test.html_files/px" style="width: 203px; height: 20px;"/></td>
      <td><span style="font-family: sansserif; font-size: 10.0px;">银行名称</span></td>
      <td><img alt="" src="test.html_files/px" style="width: 201px; height: 20px;"/></td>
    </tr>
    <tr valign="top">
      <td><img alt="" src="test.html_files/px" style="width: 54px; height: 5px;"/></td>
      <td colspan="3"><img alt="" src="test.html_files/px" style="width: 484px; height: 5px;"/></td>
    </tr>
    <tr valign="top">
      <td colspan="5"><img alt="" src="test.html_files/px" style="width: 595px; height: 740px;"/></td>
    </tr>
    </table></td><td width="50%">&nbsp;</td></tr>
    </table>
    </body>
    </html>
    这个问题难道只有我碰到吗?应该初学者都会碰到吧?好奇怪啊
      

  5.   

    用pdf格式或excel、jasperview等几种格式试一下
      

  6.   

    我所有的格式都试过了,全是这个问题,之所以把html贴上来是因为这个是文本,可以直接复制下来查看结果
      

  7.   

    晕死了,原来是column的问题,解决了!