【发布时间】:2014-07-17 22:52:03
【问题描述】:
我有以下 html,如果我在浏览器上打开它可以正常工作..但是当我将它作为邮件发送到我的 Outlook 2013 时,我看不到背景..
<!DOCTYPE html>
<html>
<head>
<title>Untitled Document</title>
</head>
<body style='background-image: url("http://postimg.org/image/t6abf7srn/");background-repeat:no-repeat'>
</body>
</html>
我已经尝试过此链接中给出的选项 1 和 2:http://blog.mailermailer.com/email-design/background-images-in-html-email-the-naked-truth
也尝试了以下链接中的解决方案:
1)http://blog.mailermailer.com/email-design/bulletproof-email-background-images-fact-or-fiction
但没有运气。
也只是添加了我的 VML 添加,这似乎也不起作用:
<!DOCTYPE html>
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<title>Untitled Document</title>
</head>
<body style='background-image: url("http://postimg.org/image/t6abf7srn/");background-repeat:no-repeat'>
<!--[if gte mso 9]>
<v:background fill="t">
<v:fill type="tile" src="http://www.example.com/background_image.jpg" />
</v:background>
<![endif]-->
</body>
</html>
【问题讨论】:
-
只是 Outlook 2013 吗?您是否尝试过任何其他 mso 版本,例如 '07,'10?b 您可以发布您的 VML 尝试吗?
-
嗯,我只是在 2013 年尝试,因为它是唯一的要求,我们也没有其他版本可以测试。不过我会尝试使用 VML
标签: html outlook background-image html-email document-body