简体   繁体   English

HTML表格中2行之间的间距

[英]Spacing between 2 Rows in a HTML table

I have a table that has some Fill in the blanks such as a form and I want to create a HTML Table that looks a lot like the real PDF File how do you create 2 Lines in <td> That look a lot like this: 我有一个表格,其中有些空白,例如表格,我想创建一个看起来很像真实PDF文件的HTML表格。如何在<td>创建2行,看起来很像这样:

这个图片

Right now it looks like this in the page: 现在,页面中的内容如下所示:

这第二

Here is the Raw HTML of how its done: 这是如何完成的原始HTML:

  <table> <tr><td><font>Balance Forward: $1,000.00</font><br/> <font>______________________________________</font></td></tr></table> 

You may simply use border : 您可以简单地使用border:

 span { padding: 0 50px; border-bottom: 1px solid; } 
 <table> <tr> <td> Balance Forward: <span>$1,000.00</span> </td> </tr> </table> 

or like this if you want to keep a table structure 或类似这样,如果您想保留表结构

 .border { padding: 0 50px; border-bottom: 1px solid; } 
 <table> <tr> <td> Balance Forward: </td> <td class="border"> $1,000.00 </td> </tr> <tr> <td> Balance Forward: </td> <td class="border"> $10.00 </td> </tr> </table> 

<table>
    <tr>
        <td>
            <font>
                Balance Forward: <u> $1,000.00</u>
            </font>
            <br/>
        </td>
        </t>
</table>

Try the HTML u tag... 尝试HTML u标签...

 <table> <tr> <td> Balance Forward: </td> <td class="border"> <u>$1,000.00</u> </td> </tr> <tr> <td> Balance Forward: </td> <td class="border"> <u>$10.00</u> </td> </tr> </table> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM