【问题标题】:MS Outlook table padding too bigMS Outlook 表格填充太大
【发布时间】:2016-06-13 13:35:23
【问题描述】:

这是它在 Outlook 中的外观:

但它应该是这样的:

代码如下:

<table style="border-bottom: solid 1px #e5e0d8; background-color: #0f0;" class="content_module" width="600" border="0" cellpadding="15" cellspacing="0">

    <tr>

        <td>

            <table style="background-color: #f0f;" class="content_col" width="285" border="0" cellspacing="0" cellpadding="15" align="left">

                <tr>

                    <td style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; background-color: #f00;">

                        <!-- img -->

                    </td>

                </tr>

            </table>


            <table style="background-color: #00f;" class="content_col" width="285" border="0" cellspacing="0" cellpadding="15" align="right">

                <tr>

                    <td style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; background-color: #00f;">

                        <!-- text -->

                    </td>

                </tr>

            </table>

        </td>

    </tr>

</table>

看起来 Outlook 左右添加了 3px 填充...看到有人出错了吗?如果问题是空格,我已经尝试过,但事实并非如此。

【问题讨论】:

标签: outlook html-table html-email padding


【解决方案1】:

你必须像这样制作一张桌子;

                <table width="480" align="left" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="30" style="border:2px solid black;">
                            Some Text
                        </td>
                        <td width="110" style="border:2px solid black;">
                            Some Text
                        </td>
                    </tr>
                </table>

【讨论】:

【解决方案2】:

问题是 mso-table-space ...

我完全删除了单元格填充并将style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;" 添加到整个邮件中的所有表格中。

【讨论】:

    猜你喜欢
    • 2021-12-21
    • 1970-01-01
    • 2012-07-24
    • 1970-01-01
    • 1970-01-01
    • 2019-11-24
    • 1970-01-01
    • 2015-12-31
    • 1970-01-01
    相关资源
    最近更新 更多