Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Email Outlook中的背景图像-未知高度?_Email_Outlook_Html Email_Outlook 2013 - Fatal编程技术网

Email Outlook中的背景图像-未知高度?

Email Outlook中的背景图像-未知高度?,email,outlook,html-email,outlook-2013,Email,Outlook,Html Email,Outlook 2013,我通过以下方式设置背景图像: <table> <tr> <td background="my-bg.jpg" bgcolor="#ebeae8" valign="top"> <!--[if gte mso 9]> <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width: 600px;">

我通过以下方式设置背景图像:

<table>
<tr>
<td background="my-bg.jpg" bgcolor="#ebeae8" valign="top">
    <!--[if gte mso 9]>
    <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width: 600px;">
        <v:fill type="tile" src="my-bg.jpg" color="#ebeae8" />
             <v:textbox style="mso-fit-shape-to-text:true" inset="0,0,0,0">
                <![endif]-->
                   <div>
                       CONTENT HERE
                    </div>
                <!--[if gte mso 9]>
            </v:textbox>
        </v:rect>
    <![endif]-->
</td>
</tr>
</table>
<table>
.....more content that gets overlayed in Outlook 2013

满足于此
…Outlook 2013中覆盖的更多内容
不幸的是,在Outlook 2013中,它在电子邮件中覆盖了它下面的其他内容。通过一些测试,我认为这是因为没有在v:rect上设置高度

  • 如何设置v-rect的高度,使其成为其内容的高度
  • 如何防止上面的td与背景图像叠加在一起

  • 您可以在代码中设置
    v:rect
    元素的高度:

    
    满足于此
    
    你的意思是下一张表应该覆盖第一张表吗?没有覆盖,下一张表应该放在有背景的表下面。我知道我可以指定高度-问题是我不知道内容的高度。你试过
    高度:100%
    ?或者将高度指定为您认为的最大值?例如,对于600px,它很可能是400px或450px。如果你有一个到图像的直接路径,你应该能够确定高度。或者让背景图像比内容的可能高度长一点。我想你不会明白的。背景应该是内容的高度-内容的高度未知。那就没有办法了。无法为未知的物体编码特定高度。