【问题标题】:Background image in td for Outlook 2007Outlook 2007 的 td 中的背景图像
【发布时间】:2011-06-21 06:08:32
【问题描述】:

我已经查看了background image on TD in Outlook 2007 的问题。我无法在 td 元素中显示背景图像。

我也看过 http://www.campaignmonitor.com/forums/viewtopic.php?id=3862 并尝试过,但没有任何乐趣。

只是我的代码片段:

<td height="100%" valign="top" background="myimage.gif" alt="" bgcolor="#FFFF00">
<!--[if gte mso 9]>
<v:image xmlns:v="urn:schemas-microsoft-com:vml" style='behavior: url(#default#VML); display:inline-block;width:51px;height:10px;position:absolute;top:0;left:0;border:0;z-index:-1;' src="myimage.gif" />
<![endif]-->

... td contents...

</td>

有什么想法吗?

【问题讨论】:

标签: html outlook-2007


【解决方案1】:

我最终通过相应地增加图像的高度以使其适合来解决这个问题。我根本没有使用 VML。

【讨论】:

    【解决方案2】:

    取出内联行为并显示在 vml 元素上(很好的尝试,我也尝试过)并确保它在您的标题中:

    <head>
    <xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v"/>
    <style type="text/css">v\:* { behavior: url(#default#VML);}</style>
    <?xml:namespace prefix = v />
    </head>
    

    我希望这可以节省我花了大约 8 个小时才找到的人

    【讨论】:

      猜你喜欢
      • 2011-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-02
      • 1970-01-01
      • 1970-01-01
      • 2023-03-08
      相关资源
      最近更新 更多