Outlook 中 HTML 电子邮件的错误显示

问题描述

我有以下 HTML 电子邮件代码:

<div style="background-color:red;max-width:600px;height:140px;margin-left:auto;margin-right:auto;">

<img src="https://via.placeholder.com/140x99" height="140" width="99" style="height:140px;width:99px;display:block;border:0;float:right;margin:0px;padding:0px;">

<p style="margin:0;font-size:30px;font-weight:700;padding-left:10px;margin-top:0px;padding-top:10px;">This is an important example header!</p>

</div>

我希望 HTML 能够像这样呈现:

enter image description here

文字在左侧,图片在右侧,与红色父元素高度相同。

我使用 Email On Acid 的所有 86 个电子邮件呈现器对此进行了测试。 HTML 代码在几乎所有电子邮件客户端上都能正确呈现。

但是在以下电子邮件客户端上显示错误:

Outlook Office 356 (Windows 10)
Outlook 2007 (Windows 7)
Outlook 2010 (Windows 7)
Outlook 2013 (Windows 7)
Outlook 2016 (Windows 10)
Outlook 2019 (Windows 10)

我得到以下输出:

enter image description here

你看,图片在左侧,文字在图片下方。

我该怎么做才能使 Outlook 电子邮件客户端上的输出也正确?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)