【问题标题】:Email newsletter: changing color of email output doesn't works in Outlook电子邮件通讯:更改电子邮件输出的颜色在 Outlook 中不起作用
【发布时间】:2021-06-14 16:18:38
【问题描述】:

我创建了一个时事通讯,它在 Outlook 中以错误的颜色显示电子邮件地址。在网页版中,电子邮件地址显示为白色,没有问题,在 Outlook 中显示为蓝色。

这是代码的一部分:

<div class="column" style="width:100%;max-width:320px;display:inline-block;vertical-align:top;">
    <table border="0" cellpadding="0" cellspacing="0" style="border-spacing:0;font-family: roboto, Arial, sans-serif;color:#ffffff;background-color:#393939;" width="100%">
        <tbody>
            <tr>
                <td class="inner" style="padding-top: 5px; padding-bottom: 5px; padding-right: 20px; padding-left: 20px; font-size:0">
                    <table border="0" cellpadding="0" cellspacing="0" class="contents" style="border-spacing:0;font-family: roboto, Arial, sans-serif;color:#ffffff !important;width:100%;font-size:11px;text-align:left;text-decoration: none;">
                        <tbody>
                            <tr>
                                <td color="color: #ffffff" style="padding:0; color: #ffffff !important">Ipsum Lorem:<br />
                                    <div style="color: #ffffff; font-family: roboto, Arial, sans-serif;">{$EMAIL}</div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
</div>

有人知道怎么改吗?

提前致谢

【问题讨论】:

    标签: html css colors outlook newsletter


    【解决方案1】:

    Word 不支持background 属性(仅当有 URL 时)。事实上,Outlook 使用 Word 来呈现 HTML 正文。您可以在以下文章中阅读有关支持和不支持的 HTML 元素和 CSS 属性的更多信息:

    【讨论】:

    • 谢谢!我会改的。
    • 这不是论据。
    • Litmus 不是 Outlook。
    猜你喜欢
    • 1970-01-01
    • 2020-06-16
    • 1970-01-01
    • 2014-07-02
    • 1970-01-01
    • 2014-02-11
    • 1970-01-01
    • 1970-01-01
    • 2013-05-31
    相关资源
    最近更新 更多