Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.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
Html 如何使用ckeditor发送响应电子邮件_Html_Ckeditor_Media Queries_Responsive - Fatal编程技术网

Html 如何使用ckeditor发送响应电子邮件

Html 如何使用ckeditor发送响应电子邮件,html,ckeditor,media-queries,responsive,Html,Ckeditor,Media Queries,Responsive,我正在使用ckeditor从Web服务器发送电子邮件。 但是我怎样才能使电子邮件的内容具有响应性呢? 据我所知,我尝试过的所有“响应电子邮件”模板都是从以下开始的: <center> <table style="width: 100%"> <tr> <td> Some content goes here... </td> </tr>

我正在使用ckeditor从Web服务器发送电子邮件。 但是我怎样才能使电子邮件的内容具有响应性呢? 据我所知,我尝试过的所有“响应电子邮件”模板都是从以下开始的:

<center>
   <table style="width: 100%">
      <tr>
         <td>
         Some content goes here...
         </td>
      </tr>
    </table>
</center>

如果是这样的话:我必须将它们放在ckeditor的文本区域中的什么位置才能与电子邮件一起发送?

如果单击工具栏中的按钮查看源代码,可以在页面顶部添加样式标记

CKEditor还允许添加内联CSS

但是,要使这两种方法都起作用,您需要在ckeditor的config.js文件中启用allowedContent

 config.allowedContent = true;
或者,您可以在启动CKEditor时启用allowedContent

<script>
        CKEDITOR.replace( 'text-area-id' );
        CKEDITOR.config.allowedContent = true;
</script>

CKEDITOR.replace('text area id');
CKEDITOR.config.allowedContent=true;
以下是文档:

<script>
        CKEDITOR.replace( 'text-area-id' );
        CKEDITOR.config.allowedContent = true;
</script>