【发布时间】:2017-07-05 21:19:07
【问题描述】:
我正在尝试在表格单元格中为带有左右空格的电子邮件创建一个简单的蓝色按钮。我所做的一切似乎都不起作用(你可以看到那里有些臃肿),我有一个正确宽度的蓝色矩形,但它不会在顶部和底部添加空间。
在 Gmail 中看起来不错,但我遇到了 Outlook 2010 的问题。有没有其他方法可以做到这一点?
我希望文本在蓝色矩形内居中 (v+h),顶部和底部有填充。
在 Outlook 2010 中查看的 2 个单元格中并排的 2 个按钮的图像
<tr>
<td>
<center>
<div height="25px" style="background-color:#1d70b7; padding:5px; width:60%; margin-bottom:20px; margin-right:20px; margin-left:20px; max-width:250px; line-height:25px; height:25px;" width="250px">
<p style="line-height:25px;"><font color="#FFFFFF">DNB</font></p>
</div>
</center>
</td>
<td>
<center>
<div height="25px" style="background-color:#1d70b7; padding:5px; width:60%; margin-bottom:20px; margin-right:20px; margin-left:20px; max-width:250px; line-height:25px; height:25px;" width="250px">
<p style="line-height:25px;"><font color="#FFFFFF">FNB</font></p>
</div>
</center>
</td>
提前致谢
【问题讨论】: