在Mailchimp的编辑器中使td具有可编辑的背景颜色

问题描述 投票:5回答:2

我正在为客户端设置自定义模板,他们希望他们能够使用编辑器来更改某些元素的背景颜色。我添加了mc:edit属性,但它似乎没有任何作用-无法更改该属性。我还需要指定什么?

editor edit background-color mailchimp
2个回答
1
投票

您需要在样式声明块中定义可编辑的标签。您可以在其中放置希望客户端能够编辑的任何标签。

示例:

((复制并保存在模板编辑器中,然后在广告系列编辑器中打开。)>

<html>
    <head>

    <style type="text/css">

    /*
    @tab Body
    @section body style
    @tip Set the background color for your email's body area.
    */
    #table{
        /*@editable*/background-color:#888888;
    }

    </style>
    </head>

    <body>
        <table id="table">
            <tr>
                <td>
                    <div mc:edit="content">
                        Lorem ipsum
                    </div>
                </td>
            </tr>
        </table>
    </body>
</html>

请确保为任何可编辑部分赋予唯一的mc:edit ID。

来源:http://templates.mailchimp.com/getting-started/template-language/


0
投票

有人知道如何将可编辑样式块与可重复块结合使用吗? (例如:mc:repeatable =“ image_with_content” mc:variant =“ block 1”)

© www.soinside.com 2019 - 2024. All rights reserved.