【问题标题】:Email Background image is not displayed in outlook desktop application - office 365Outlook 桌面应用程序中不显示电子邮件背景图像 - Office 365
【发布时间】:2020-04-08 13:56:01
【问题描述】:

我正在发送电子邮件表单 php 代码,我的电子邮件正文是 HTML

$emailBody=<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
#textDiv{
    background-image: url("appreciation-'.$imageId.'.jpg");background-repeat: no-repeat;width:595px;height: 842px;color: white;float: center;
    }
#p1{
    padding-top: 420px;padding-left: 50px;width: 500px;font-size: large;
}
#p2{
    padding-top: 30px;padding-left: 50px;width: 500px;font-size: 25px;
}
</style>
</head>
<body>
<center> 
<div id="textDiv"  align="center" style="font-family: cursive; text-align:center;">
        <p id="p1">Hi '.$actReciverName.', you have received Kudos from '.$senderName.' </p>
        <p id="p2"><i><u>"'.$comment.'"</u></i></p> 
</div>
</center>
</body>
</html>

发送电子邮件后,背景图像不会显示在 Outlook 桌面应用程序中,但它在 Outlook Web 邮件中工作正常,如何使其在桌面 Outlook 应用程序中可见

提前感谢您的支持

【问题讨论】:

标签: php html email outlook background-image


【解决方案1】:

另一个答案并不完全正确,而且这些 cmets 具有误导性(充其量)。背景图像使用 bulletproof backgrounds 工作,它利用 VML 来创建您的背景。

我刚刚在混合设计中使用透明渐变作为背景图像编写了一封电子邮件。

我无法让它 100% 工作的唯一客户端是 Office 365 的 Outlook 版本 16 中的暗模式,但它仍然存在,只是该版本的 Outlook 将透明胶片填充为白色。许多电子商务客户根本不会关心在 Outlook for 365 (v16) 中使用暗模式的用户,但我建议您在决定之前咨询您的电子邮件/营销团队以了解情况。

【讨论】:

    【解决方案2】:

    HTML 邮件由 Word 在 Outlook 中呈现,Word 不支持背景图像。尝试创建一个表格并设置其背景图像。

    【讨论】:

    • 连表格背景都不显示
    猜你喜欢
    • 1970-01-01
    • 2021-08-01
    • 1970-01-01
    • 2014-03-28
    • 1970-01-01
    • 2020-07-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多