0

私はhtml電子メーラーを構築しています.ラッパーテーブルに背景画像を表示させようとしています.

 <table border="0" cellpadding="0" cellspacing="0" height="489" width="639" align="left" style="background-image:url(../../images/email-bg.jpg); width:639px; height:489px">
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td align="left" style="font-family: Arial, sans-serif; font-size:10px; color:#477398 "><h1>This is my title text</h1></td>
                <td colspan="2" align="left" style="font-family: Arial, sans-serif; font-size:10px; padding:10px 0 5px 2px; text-decoration:underline; color:#808184 "><a href="#">Continue</a></td>
            </tr>
        </table>
    </table>
4

1 に答える 1

1

これを試して、

<table border="0" cellpadding="0" cellspacing="0" height="489" width="639" align="left" >
<tr>
<td style="background-image:url(../../images/email-bg.jpg); width:639px; height:489px">
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td align="left" style="font-family: Arial, sans-serif; font-size:10px; color:#477398 "><h1>This is my title text</h1></td>
                <td colspan="2" align="left" style="font-family: Arial, sans-serif; font-size:10px; padding:10px 0 5px 2px; text-decoration:underline; color:#808184 "><a href="#">Continue</a></td>
            </tr>
        </table>
</td>
</tr>
    </table>

最初のテーブルにtr要素とtd要素がないことを確認してください。

于 2012-07-17T16:53:58.597 に答える