最简单的办法就是找一个虚线的图片了。。插入图片就可以。。网上看到的页面都是这样做的如果非的用asp.net实现,反倒罗嗦了。

解决方案 »

  1.   

    <table width="200" cellspacing="0" cellpadding="0">
    <tr align="center"> 
    <td style="BORDER-top: rgb(0,0,0) 1px dotted; BORDER-bottom: rgb(0,0,0) 1px dotted; BORDER-left: rgb(0,0,0) 1px dotted; BORDER-right: rgb(0,0,0) 1px dotted">细</td>
    <td style="BORDER-top: rgb(0,0,0) 1px dotted; BORDER-bottom: rgb(0,0,0) 1px dotted; BORDER-right: rgb(0,0,0) 1px dotted">表</td>
    </tr>
    <td style="BORDER-bottom: rgb(0,0,0) 1px dotted; BORDER-left: rgb(0,0,0) 1px dotted; BORDER-right: rgb(0,0,0) 1px dotted">线</td>
    <td style="BORDER-bottom: rgb(0,0,0) 1px dotted; BORDER-right: rgb(0,0,0) 1px dotted">格</td>
    </tr>
    </table>
      </table>
      

  2.   

    可以用<HR style="Z-INDEX: 111; LEFT: 48px; WIDTH:1px; POSITION: absolute; TOP: 384px; HEIGHT: 100px" width="1px" SIZE="100">
    这样,一条竖线只能是100px,超过100px的需要分段。
    我在一个程序中是使用C#载页面上动态的创建HR对象。可以划出任意长度的竖线,思路就是超过100的竖线进行分段后,使用几条拼接起来。整个算法就是left不变,top和height根据你的长度情况定下。