Html 如何使图像显示为表格的背景而不是正文?
我知道Outlook并没有真正渲染背景图像,但使用我找到的防弹背景,我成功地添加了背景。但是,我希望背景只在600px的表中。它在其他所有电子邮件中都有效,但Outlook我使用Outlook 2010,因此它可能在Outlook 2007-2016中也不起作用。在Outlook中,背景覆盖整个身体,而不仅仅是桌子Html 如何使图像显示为表格的背景而不是正文?,html,email,outlook,html-email,vml,Html,Email,Outlook,Html Email,Vml,我知道Outlook并没有真正渲染背景图像,但使用我找到的防弹背景,我成功地添加了背景。但是,我希望背景只在600px的表中。它在其他所有电子邮件中都有效,但Outlook我使用Outlook 2010,因此它可能在Outlook 2007-2016中也不起作用。在Outlook中,背景覆盖整个身体,而不仅仅是桌子 <table> <tr> <td style="background-image:url('image-here
<table>
<tr>
<td style="background-image:url('image-here');background-repeat:no-repeat;background-position:top;" border="0" cellspacing="0" cellpadding="0" background="image-here">
<!--[if gte mso 9]>
<v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
<v:fill type="tile" src="image-here" color="#ffffff" />
</v:background>
<![endif]-->
<table>
content here
</table>
</td>
</tr>
</table>
我已经尝试在td中添加背景图像,但图像仍然超出了表的范围
<table>
<tr>
<td style="background-image:url('image-here');background-repeat:no-repeat;background-position:top;" border="0" cellspacing="0" cellpadding="0" background="image-here">
<!--[if gte mso 9]>
<v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
<v:fill type="tile" src="image-here" color="#ffffff" />
</v:background>
<![endif]-->
<table>
content here
</table>
</td>
</tr>
</table>
尝试将内联样式放置在表标记中
<table class="table" style="background-image: url('image-here');">
隐马尔可夫模型。。。有点不清楚你在说什么。。您是说Outlook不会使用css样式声明进行渲染,但使用供应商标记和向量标记可以渲染图像,但仍然不遵守样式声明。所以你的问题是什么?在这种情况下,如何将css样式声明应用于vml。。。此外,这是分级图像还是矢量图像?您需要设置背景图像的宽度和高度。我可以想象,如果你看到你的背景图像工作,你已经设置了这些?如果是这样的话,你可以发布你的实际代码吗。将帮助我们正确地调试。在表上定义背景图像并没有什么区别,因为表单元格只是从表中继承宽度。