2011-02-04 71 views
0

我在background image on TD in Outlook 2007上看过这个问题。我无法获取背景图片以显示在td元素中。td for Outlook 2007中的背景图片

我也看过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> 

任何想法?

+0

[Outlook 2007中TD背景图像可能出现重复](http://stackoverflow.com/questions/3587328/background-image-on-td-in-outlook-2007) – 2011-02-04 09:40:44

回答

0

我最终通过增加图像的高度来适应它。我根本没有使用VML。

1

取出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小时它花了我的时间找到