Sta*_*erg 5 editor edit background-color mailchimp
我正在为客户端设置自定义模板,在该客户端中,他们希望能够使用编辑器更改某些元素的背景颜色。我添加了mc:edit属性,但它似乎没有任何作用-无法更改该属性。我还需要指定什么?
您需要在样式声明块中定义可编辑的css标签。您可以在其中放置您希望客户能够编辑的任何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>
Run Code Online (Sandbox Code Playgroud)
确保为任何可编辑部分提供唯一的 mc:edit ID。
来源: http: //templates.mailchimp.com/getting-started/template-language/