Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css Mailchimp';样式声明块';不起作用_Css_Email_Mailchimp - Fatal编程技术网

Css Mailchimp';样式声明块';不起作用

Css Mailchimp';样式声明块';不起作用,css,email,mailchimp,Css,Email,Mailchimp,我的电子邮件中有一些自定义样式,我想在WYSIWYG编辑器中使用它们。我照做了,但我的风格没有表现出来。我能做些什么不同的事情?还有,有没有办法删除未使用的样式,例如 TOC标题 /** * @tab Page * @tip Set the styling for all first-level headings in your emails. * @style heading 1 */ h1{ line-height:1; font-weight:bol

我的电子邮件中有一些自定义样式,我想在WYSIWYG编辑器中使用它们。我照做了,但我的风格没有表现出来。我能做些什么不同的事情?还有,有没有办法删除未使用的样式,例如
TOC标题

  /**
  * @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/添加到每行。

每行上的
/*@editable*/
注释在哪里?样式声明块引用MailChimp活动编辑器中“常规设计”列中的选项。MailChimp使用WYSIWYG编辑器,用户无法更改CKEditor本身的样式选项(据我所知)。如果这对您有效,您可以单击绿色并关闭问题吗?谢谢你,祝你好运!不幸的是,这不是解决方案,尽管我尝试过:“样式声明块共享一个基本结构,而不管目标的元素样式如何,并且/*@editable*/声明会在一个区域内重复每个您想要编辑的元素。”您知道我实际上从未在MC中尝试过这一点,现在我想-看看是否得到相同的结果:D
/**
* @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;
}