【发布时间】:2018-04-16 14:01:36
【问题描述】:
我正在制作一封 HTML 电子邮件,加载这些电子邮件的程序不接受单独的 CSS 文件,因此所有内容都必须内联。由于某种原因,表格的边距不起作用。我只需要一张桌子底部和下一张桌子之间的空隙。
到目前为止我所拥有的:
<table width="600" margin-bottom="50" cellpadding=8 cellspacing=0 border=0>
//contents of table
</table>
<table width="600" cellpadding="0" cellspacing="0" border="0">
//contents of next table
</table>
根本没有创建间隙。
这行得通:
<table width="600" cellpadding=8 cellspacing=0 border=0>
//contents of table
</table>
<br>
<table width="600" cellpadding="0" cellspacing="0" border="0">
//contents of next table
</table>
我也尝试了 padding-bottom,也没有做任何事情。
那么使用<br> 是唯一的方法吗?好像有点尴尬。
【问题讨论】:
-
这与我的问题完全无关。我已经在使用内联样式(字面意思是我问题的第一句话)并使用表格。
标签: css html-table html-email margin padding