簡體   English   中英

如何使圖像顯示為表格而不是主體的背景?

[英]How do I make the image show as a background to the table and not the body?

我知道 Outlook 並沒有真正為背景渲染圖像,但使用我找到的防彈背景,我設法添加了背景。 但是,我希望背景只能在表格內(即 600 像素)。 It works in every other email but Outlook (I use Outlook 2010 so it probably doesn't work in Outlook 2007-2016 as well). 在 Outlook 中,背景跨越整個身體,而不僅僅是桌子。

我嘗試在 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');">

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM