html - Outlook 2013 中的要点图像对齐问题

标签 html outlook html-table html-email

我一直在创建一个 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/

相关文章:

java - 创建包含收件人、主题、正文和附件的电子邮件

javascript - 使用 rowspan 将重复值单元格合并为具有相同空间量的单个单元格

javascript - 水平和垂直可滚动的大表格

javascript - 根据下拉列表中更改的选择触发观察者 - Ember.js

html - 重新排列同级 DIVS

javascript - 为什么 0154 === 108?

java - 在 Java 中使用 HTMLEditorKit,如何找到 <img src=...> 标签将使用的本地文件路径?

c# - 没有加载项 Express 的 outlook 2010 加载项构建自定义 WebViewPane

java - 如何通过java程序搜索outlook联系人?

html - 在 Div 表中对齐表