Html 表行中两个列之间的填充问题
我怎样才能在一张桌子的两部分之间加上填充物呢。 例如:Html 表行中两个列之间的填充问题,html,css,Html,Css,我怎样才能在一张桌子的两部分之间加上填充物呢。 例如: <table> <tr> <td></td> <!-- need space here --> <td></td> </tr> </table> 您可以在表中尝试以下代码:- <table cellspacing="15"> Add cellpa
<table>
<tr>
<td></td>
<!-- need space here -->
<td></td>
</tr>
</table>
您可以在表中尝试以下代码:-
<table cellspacing="15">
Add cellpacing in table to give space.
在表中添加CellPacking以提供空间。
添加此css
<head>
<style>
table {border-spacing: 0;}
</style>
</head>
表{边框间距:0;}
希望它能帮助您:)您可以添加第三个单元格,并给出一个填充示例:
<table>
<tr>
<td></td>
<td style="padding:5px;"> </td>
<td></td>
</tr>
</table>
您需要添加代码..并更好地解释您的问题。@Jmh2013:代码在中,但由于它没有用空行与文本分隔,因此被视为标记。我同意,更详细的解释会很棒。是否仅在两个特定列之间?或者在任意两列之间?你怎么知道哪个栏目?等等。这可能会帮助您: