【问题标题】:How to apply background-image to a column of table in Email template (outlook 2007) [duplicate]如何将背景图像应用于电子邮件模板中的表格列(outlook 2007)[重复]
【发布时间】:2019-01-08 21:32:51
【问题描述】:

我已在我的专栏中添加了背景图像,但它在 Outlook 2007 中不起作用,如何使背景图像出现在 Outlook 2007 客户端中并填充 td 100% 并控制其定位。

我试过这个:-

<tr height="125px">
	<td width="750px" height="125px" class="tdBack" background="" align="left" valign="bottom" id="logo" style="padding:6px 80px 0px 10px;background-image: url('');background-repeat: repeat-y no-repeat;background-color: #333;margin: 0;background-size:750px">
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false">
			<v:fill type="tile" src="" />
			<v:textbox inset="0,0,0,0" style="v-text-anchor:bottom;">
				<font style="font-family:Arial; font-   weith:bold;font-size:11pt; line-height: 27px;" color="#FFFFFF">
        <i>Newsletter du <xsl:value-of  select="$"/>
        </i>
       </font>
		  </v:textbox>
		 </v:rect>  
		</td>
  </tr>

但这就是我得到的

我希望图像完全填满td,谢谢!

【问题讨论】:

  • 到目前为止,一个简单的搜索将为您提供关于 SO 的 4 个答案。这是一个有效的stackoverflow.com/questions/44525250/…
  • 谢谢.. 但我已经尝试了这些答案,我发现 Outlook 2007 不会渲染 conditionnel cmets 内部的图像,所以我删除了 conditionnel cmets MSO,它可以工作.. 问题已解决,谢谢为了大家的支持

标签: css email xslt html-email email-templates


【解决方案1】:

谢谢你.. 但我已经尝试了这些答案,我发现 Outlook 2007 不会渲染 conditionnel cmets 内的图像 所以我删除了 conditionnel cmets MSO 并且它可以工作.. 问题解决了谢谢大家的支持

【讨论】:

  • 您可以在没有条件语句的情况下渲染 VML,但不建议这样做。在有条件的情况下使用它很好。如果它不能与条件一起工作,那么你的条件是错误的。
猜你喜欢
  • 1970-01-01
  • 2014-03-28
  • 2013-04-03
  • 2012-07-23
  • 2021-08-01
  • 2023-03-08
  • 1970-01-01
  • 2014-12-26
  • 2016-06-04
相关资源
最近更新 更多