【发布时间】:2014-11-05 07:32:58
【问题描述】:
我在时事通讯中向 TD 添加文本和背景图像时遇到了一些困难,在我用来显示它们的代码下方。背景可见,但文字未显示。
{if !empty($aModules.mkNews)}
{foreach name=mkNews from=$aModules.mkNews item=mkNews}
<td width="230" style="background:url(http://www.example.com/images/content/mkNews/{$mkNews.mkNewsID}/image_{$mkNews.image|getImage:'_big'}) no-repeat center center; text-align: center; font-size: 14px; color: white; font-family:verdana; padding: 20px 0; line-height:22px;">
<table background="http://www.example.com/images/content/mkNews/{$mkNews.mkNewsID}/image_{$mkNews.image|getImage:'_big'}" width="230" height="230">
<tr>
<td style="text-align: center; font-size: 14px; color: white; font-family:verdana; padding: 20px 0; line-height:22px;">
<!--[if gte mso 9]>
<v:image xmlns:v="urn:schemas-microsoft-com:vml" id="theImage" style='behavior: url(#default#VML); display:inline-block; height:230px; width:230px; border:0; z-index:1;' src="http://www.example.com/images/content/mkNews/{$mkNews.mkNewsID}/image_{$mkNews.image|getImage:'_big'}"/>
<v:shape xmlns:v="urn:schemas-microsoft-com:vml" id="theText" style='behavior: url(#default#VML); display:inline-block; position:absolute; height:230px; width:230px; top:0; left:0; border:0; z-index:2;'>
<![endif]-->
{$mkNews.message}
<!--[if gte mso 9]>
</v:shape>
<![endif]-->
</td>
</tr>
</table>
</td>
{/foreach}
{/if}
谁能指出我正确的方向?我对 Outlook 使用的 v-tags 没有太多经验。
提前致谢!
【问题讨论】:
标签: html html-email outlook-2010 newsletter