【问题标题】:Mailchimp 'Style Declaration Block' not workingMailchimp“样式声明块”不起作用
【发布时间】:2017-05-28 08:38:15
【问题描述】:

我的电子邮件中有一些自定义样式,我想在所见即所得编辑器中使用它们。我关注了this guide,但我的风格没有出现。我能做些什么不同的事情?另外,有什么方法可以删除未使用的样式,例如 TOC heading?

  /**
  * @tab Page
  * @tip Set the styling for all first-level headings in your emails.
  * @style heading 1
  */
  h1{
    line-height:1;
    font-weight:bold;
    color:#24a9a4;
    font-family:Source Sans Pro,Helvetica,Arial;
    text-shadow:2px 2px 0 #ffde17;
    margin:5px 0;
    font-size:65px;
  }

在电子邮件中,样式看起来不错:

但是在下拉菜单中我看不到我的任何样式:

【问题讨论】:

  • 每行你的/*@editable*/ cmets 在哪里?
  • 样式声明块是指 MailChimp 的活动编辑器中的一般设计列中的选项。 MailChimp 使用ckeditor 作为所见即所得编辑器,用户无法更改 CKEditor 本身的样式选项(据我所知)。

标签: css email mailchimp


【解决方案1】:
/**
* @tab Page
* @section Heading 1
* @tip Set the styling for all first-level headings in your emails.
* @style heading 1
*/
h1{
  /*@editable*/ line-height:1;
  /*@editable*/ font-weight:bold;
  /*@editable*/ color:#24a9a4;
  /*@editable*/ font-family:Source Sans Pro,Helvetica,Arial;
  /*@editable*/ text-shadow:2px 2px 0 #ffde17;
  /*@editable*/ margin:5px 0;
  /*@editable*/ font-size:65px;
}

尝试将 /@editable/ 添加到每一行。

【讨论】:

  • 如果这对您有用,您可以单击绿色并关闭问题吗?谢谢你,祝你好运!
  • 不幸的是,这不是解决方案,尽管我尝试过:“样式声明块共享一个基本结构,而不管目标元素样式如何,并且 /*@editable*/ 声明为您想要的每个元素重复可以在一个区域内编辑。”
  • 你知道我实际上从未在 MC 中尝试过这个,现在我想 - 看看我是否得到相同的结果:D
猜你喜欢
  • 2015-08-05
  • 2015-08-13
  • 2012-11-08
  • 2013-10-21
  • 1970-01-01
  • 2011-04-12
  • 2013-07-13
  • 1970-01-01
相关资源
最近更新 更多