0

试图为电子邮件修复一些问题。这里的问题截图:http: //imgur.com/pEQvVqf

基本上有一个 600width 的表格,我需要与电子邮件其余部分相同的背景颜色和文本颜色。

然而,正如你所见,两边都是白色的——我该怎么办?左右做两张桌子?并使它们变灰,或者我可以使文本保持原样并使表格宽度为 100%?因为那会扭曲我的文本格式。

非常感谢任何帮助 - 这是我的代码(无法正确格式化 4 个间距,因此使用了反引号:

<table width="600" height="21" border="0" cellspacing="0" cellpadding="0" align="center" style="background-color:#ccc;font-family:verdana; font-size:10px; color:FFFFFF">
    <tr>
        <td colspan="2" align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#000000; padding:10px 10px 0px 10px;">
            <font style="font-family:arial;font-size:10px;">
              You have received this email from an independent marketing company x x x x x x x .Company Reg. No.03976500 You have registered to receive our email advertising from one of our sites, and may unsubscribe from this newsletter by clicking <a href="">here</a><br> For more information on how we use your data, please read our <a href="http:/www.yoy.co.uk/privacy-legal" style="color: #5B5B5B;" target="_blank">privacy policy</a>.
            </font> 
        </td>
    </tr>
</table>

干杯

4

3 回答 3

0

只需使用 div 标签和一些特殊的 CSS 类。

<div style="background-color:#ccc;font-family:arial;font-size:10px;">
  <table style="width: 600px;margin:0 auto;font-family:verdana;color:FFFFFF;">...</table>
</div>
于 2013-08-02T15:06:49.493 回答
0

只需添加这个 css - body:background-color:#123456;

于 2013-08-02T15:10:04.750 回答
0

尝试这样的事情:

<div style="background-color:#ccc; font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#000000; color:#fff; width:100%">
    <div style="width:600px; margin: 0 auto; padding: 10px 10px 0 10px;">
              You have received this email from an independent marketing company x x x x x x x .Company Reg. No.03976500 You have registered to receive our email advertising from one of our sites, and may unsubscribe from this newsletter by clicking <a href="">here</a><br> For more information on how we use your data, please read our <a href="http:/www.yoy.co.uk/privacy-legal" style="color: #5B5B5B;" target="_blank">privacy policy</a>.
    </div>
</div>
于 2013-08-02T15:10:04.873 回答