我目前正在为客户编写电子邮件模板,我才想起为什么我讨厌编写电子邮件模板。
基本上我很难让 4 个 TD 在一行中均匀分布。
这是我的代码的一部分:
<tr>
<td colspan="3" style="padding-bottom:50px;text-align:center;"><a href="#" style="display:inline-block;width:125px;background:red;"><img src="http://fpoimg.com/95x100"/></a></td>
<td colspan="3" style="padding-bottom:50px;text-align:center;"><a href="#" style="display:inline-block;width:125px;background:blue;"><img src="http://fpoimg.com/95x100"/></a></td>
<td colspan="3" style="padding-bottom:50px;text-align:center;"><a href="#" style="display:inline-block;width:125px;background:green;"><img src="http://fpoimg.com/95x100"/></a></td>
<td colspan="3" style="padding-bottom:50px;text-align:center;"><a href="#" style="display:inline-block;width:125px;background:yellow;"><img src="http://fpoimg.com/95x100"/></a></td>
</tr>
我设置了背景颜色只是为了便于查看。
如您所见,这些列在该行中没有出现。中间的空间太大了。我无法为我的生活找出原因。
有什么帮助吗?