2

別のスレッド ( Outlook 2013 の背景画像が壊れています) を見つけましたが、スタック オーバーフローの新規ユーザーであるためコメントできません。これが私のコードです:

<table width="695" height="194" border="0" cellpadding="0" style="background-image:url('http://champ.website-admin.net/files/2014/12/email.jpg'); padding:24px;">
 <tbody>
<tr>
  <td><h3>Emma Woolward</h3></td>
</tr>
<tr>
  <td><p><a href="mailto:operations@champresources.com.au">operations@champresources.com.au</a></p></td>
</tr>
<tr>
  <td><p>1300 GO CHAMP</p></td>
</tr>
<tr>
  <td><p>P: 1300 462 426</p></td>
</tr>
<tr>
  <td><a href="www.champresources.com.au"><p>www.champresources.com.au</p></a></td>
</tr>
 <tr>
  <td><a href="https://www.facebook.com/champresources?fref=ts"><img src="http://champ.website-admin.net/files/2014/12/facebook.png" style="width:100px;height:33px; float: left;"></a><img src="http://champ.website-admin.net/files/2014/12/zeroharm.png" style="float:left; margin-left:5px;"></td>
</tr>

背景画像が表示されません。同様のスレッドへの応答は、マルチパート電子メールを使用することを提案し、コード例を提供しました:

--==boundary-1
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
Content-Base: http://test.endlesspeak.cz

<td background="cid:bg-deepak.jpg">
--==boundary-1
Content-type: image/jpg; name="bg-deepak.jpg"
Content-ID: <bg-deepak.jpg>
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="bg-deepak.gif"

このコード例は、頭の中でどこに行くのが最適なのだろうか?

または、背景画像が見通しに入ったときに背景画像が消える理由について、他の誰かが他の考えを持っていますか?

4

1 に答える 1

2

Outlook は、IE ではなく Word を使用して HTML を表示することに注意してください。Word がテーブルの背景画像をサポートしているかどうかはわかりませんが、タグの背景画像はサポートされていません。

于 2015-01-03T18:05:47.007 に答える