我一直在创建一个 HTML 电子邮件,并在 litmus 中进行了测试,该电子邮件在除 Outlook 2013 之外的大多数 Outlook 版本中都可以正常工作和显示,其中项目符号点图像显示在文本下方,以下是代码。
<table border="0" cellpadding="2" cellspacing="0">
<tr>
<td valign="top" width="15">
<img src="https://s3-eu-west-1.amazonaws.com/dnx-sap-01/324/3/spacer.gif" height="8" width="15">
</td>
<td valign="top" width="12">
<img src="https://s3-eu-west-1.amazonaws.com/dnx-sap-01/324/3/BulletGold_Roundtest.jpg" width="7" height="11"/>
</td>
<td valign="top" style="font-family:Arial, Helvetica, sans-serif; color:#222222; font-size:11px;">
<b>Guide:</b> <a href="http://www.sap.com/">How to get started with Big Data</a>
</td>
</tr>
<tr>
<td valign="top" width="15">
<img src="https://s3-eu-west-1.amazonaws.com/dnx-sap-01/324/3/spacer.gif" height="8" width="15">
</td>
<td valign="top" width="12">
<img src="https://s3-eu-west-1.amazonaws.com/dnx-sap-01/324/3/BulletGold_Roundtest.jpg" width="7" height="11">
</td>
<td valign="top" style="font-family:Arial, Helvetica, sans-serif; color:#222222; font-size:11px;">
<b>Benchmarking Assessment Tool:</b> <a href="https://valuemanagement.sap.com/Sapbenchmarking_Portal.html#ID=340" target="_blank">SAP Big Data Maturity Model</a>
</td>
</tr>
<tr>
<td valign="top" width="15">
<img src="https://s3-eu-west-1.amazonaws.com/dnx-sap-01/324/3/spacer.gif" height="8" width="15">
</td>
<td valign="top" width="12">
<img src="https://s3-eu-west-1.amazonaws.com/dnx-sap-01/324/3/BulletGold_Roundtest.jpg" width="7" height="11">
</td>
<td valign="top" style="font-family:Arial, Helvetica, sans-serif; color:#222222; font-size:11px;">
<b>Video Whitepaper:</b> <a href="http://www.sap.com/">Shining a Light on the Value of Big Data</a>
</td>
</tr>
</table>
最佳答案
这很奇怪,因为看起来应该可以正常工作......
也许尝试设置表格和所有单元格的宽度,以便总宽度加起来相同。您还可以通过用如下内容交换行来简化代码:
<tr>
<td valign="top" align="right" width="27">
<img src="https://s3-eu-west-1.amazonaws.com/dnx-sap-01/324/3/BulletGold_Roundtest.jpg" width="7" height="11" style="margin: 0; border: 0; padding: 0; display: block;" />
</td>
<td valign="top" width="273" style="font-family:Arial, Helvetica, sans-serif; color:#222222; font-size:11px;">
<b>Guide:</b> <a href="http://www.sap.com/">How to get started with Big Data</a>
</td>
</tr>
您也应该始终在图像上使用 display:block;
。看看情况如何...
关于html - Outlook 2013 中的要点图像对齐问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18782693/