使 td 在 Mailchimp 的编辑器中具有可编辑的背景颜色
Make td have editable background color in Mailchimp's editor
我正在为客户设置自定义模板,他们希望能够使用编辑器更改某些元素的背景颜色。我添加了 mc:edit 属性 但它似乎没有任何效果 - 属性 无法更改。我还需要说明什么?
您需要在其中定义您希望客户能够编辑的可编辑 css tags in a style declaration block. You can put any html 标签。
示例:
(复制并保存在您的模板编辑器中,然后在您的活动编辑器中打开)。
<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/
我正在为客户设置自定义模板,他们希望能够使用编辑器更改某些元素的背景颜色。我添加了 mc:edit 属性 但它似乎没有任何效果 - 属性 无法更改。我还需要说明什么?
您需要在其中定义您希望客户能够编辑的可编辑 css tags in a style declaration block. You can put any html 标签。
示例:
(复制并保存在您的模板编辑器中,然后在您的活动编辑器中打开)。
<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/