【发布时间】:2014-03-28 09:23:55
【问题描述】:
我正在制作带有背景图片的 HTML 电子邮件。现在,我无法在 Outlook 中显示背景图像。我尝试了http://backgrounds.cm/ 的“防弹背景图片”,但还没有成功。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hello</title>
</head>
<body style="background: url(https://raw2.github.com/dman777/icons/master/full_size.png);">
<table class="body" style="background: url(https://raw2.github.com/dman777/icons/master/full_size.png)">
<div style="background-color:#7bceeb;">
<!--[if gte mso 9]>
<v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
<v:fill type="tile" src="https://raw2.github.com/dman777/icons/master/full_size.png" color="#7bceeb"/>
</v:background>
<![endif]-->
<table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top" align="left" background="https://raw2.github.com/dman777/icons/master/full_size.png">
</td>
</tr>
</table>
</div>
</table>
</body>
</html>
【问题讨论】:
-
将
https://github.com/dman777/icons/blob/master/full_size.png更改为https://github.com/dman777/icons/blob/master/full_size.png,因为第一个链接不是图片。 -
对不起,我刚刚解决了这个问题,但仍然没有成功。
-
我唯一能想到的另一件事是在 url() 中的图像周围添加引号。
-
您是否尝试过使用来自
http协议URL 的图像而不是https?可能是协议错误或不匹配(但这只是猜测)
标签: html email html-email