【问题标题】:Foundation Email Expanded Button Within Basic Grid基本网格中的基础电子邮件扩展按钮
【发布时间】:2020-08-11 09:14:14
【问题描述】:

编辑:以下概述的示例也适用于雷鸟。

我目前正在学习如何使用电子邮件基础来创建电子邮件。我目前想要做的是在网格中创建一个“扩展按钮”。我通过引用为网格 here 概述的示例和为扩展按钮 here 概述的示例,提出了以下 HTML。

以下是我想出的,根据我目前所读到的内容,我的想法是我必须在我的网格列中添加“扩展按钮”,所以我有以下 HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>Title</title>
    <link rel="stylesheet" href="css/foundation-emails.css" />
</head>
    <table align="center" class="container">
        <tbody>
        <tr>
            <td>
                <table class="row">
                    <tbody>
                    <tr>
                        <th class="columns first last">
                            <table>
                                <tr>
                                    <table class="row">
                                        <tbody>
                                        <tr>
                                            <column>
                                                <table class="button expanded">
                                                    <tr>
                                                        <td>
                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <center data-parsed><a href="#"
                                                                                               align="center"
                                                                                               class="float-center">Reset Password</a>
                                                                        </center>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                        <td class="expander"></td>
                                                    </tr>
                                                </table>
                                                <table class="button small-expanded">
                                                    <tr>
                                                        <td>
                                                            <table>
                                                                <tr>
                                                                    <td><a href="#">Expand small only</a></td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </column>
                                        </tr>
                                        </tbody>
                                    </table>
                                    <th class="expander"></th>
                                </tr>
                            </table>
                        </th>
                    </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        </tbody>
    </table>
</html>

它看起来与我在 Firefox 中的预期完全一样,但在 Outlook 中看起来不正确。例如,它在 Firefox 中的显示如下:

这是我发送电子邮件时在 Outlook 中的样子:

就上下文而言,我正在尝试创建一个典型的“重置密码”电子邮件模板。请注意,我已按照文档的说明通过位于 here 的 CSS 内联程序运行 HTML。

【问题讨论】:

    标签: html css zurb-foundation html-email


    【解决方案1】:

    这个问题在 2.3.1 版本中得到解决,但是他们的官方下载链接没有更新为提供最新版本的代码,因此我花时间尝试解决一个已经纠正的问题。虽然按钮现在已展开,但 Outlook 中的锚链接存在问题。

    更多信息请参见https://github.com/foundation/foundation-emails/issues/415

    【讨论】:

      猜你喜欢
      • 2011-07-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多