MailChimp 自动完成自定义 HTML,破坏格式



有没有办法阻止MailChimp尝试自动完成我的HTML?

我创建了一个自定义HTML模板来与MailChimp一起使用。但是,当我在粘贴后单击"保存并关闭"时,MailChimp 正在添加和删除一些标签以尝试"修复"我的代码。

下面是一个示例。我正在使用一些VML来解决一些Outlook问题。

这是我粘贴的代码的一小部分:

  <table cellpadding="0" ... >
    <tr>
      <td background="http://oi63.tinypic.com/2jexxsp.jpg" bgcolor="#7be2eb" width="640" valign="top">
        <!--[if gte mso 9]>
        <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:640px;">
        <v:fill type="frame" src="http://oi63.tinypic.com/2jexxsp.jpg" color="#7be2eb" />
        <v:textbox style="mso-fit-shape-to-text:true" inset="0,0,0,0">
        <![endif]-->
          <tr>
           ...
          </tr>
         <!--[if gte mso 9]>
         </v:textbox>
         </v:rect>
         <![endif]-->
      </td>
    </tr>
  </table>

但是保存然后返回编辑器后,它看起来像这样:

  <table cellpadding="0" ... >
    <tr>
      <td background="http://oi63.tinypic.com/2jexxsp.jpg" bgcolor="#7be2eb" width="640" valign="top">
        <!--[if gte mso 9]>
        <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:640px;">
        <v:fill type="frame" src="http://oi63.tinypic.com/2jexxsp.jpg" color="#7be2eb" />
        <v:textbox style="mso-fit-shape-to-text:true" inset="0,0,0,0">
        <![endif]-->
          </td></tr><tr>
           ...
          </tr>
         <!--[if gte mso 9]>
         </v:textbox>
         </v:rect>
         <![endif]-->
      </table></td>
    </tr>
  </table>

它试图为我关闭 TD(第 9 行(、TR(第 9 行(和 TABLE(第 18 行(标签,并完全忽略它们已经关闭的事实。

还有其他几个地方,因为它过早地创建了结束标签,它只会删除我更远的结束标签。

有没有办法阻止MailChimp试图"修复"我的代码?

需要在 VML 区域内添加一个表。Mailchimp会自动关闭tdtr元素,以防止严重的渲染问题。

  <table cellpadding="0" ... >
    <tr>
      <td background="http://oi63.tinypic.com/2jexxsp.jpg" bgcolor="#7be2eb" width="640" valign="top">
        <!--[if gte mso 9]>
        <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:640px;">
        <v:fill type="frame" src="http://oi63.tinypic.com/2jexxsp.jpg" color="#7be2eb" />
        <v:textbox style="mso-fit-shape-to-text:true" inset="0,0,0,0">
        <![endif]-->
        <table cellpadding="0" ...>
          <tr>
            <td>
           ...
            </td>
          </tr>
         </table>
         <!--[if gte mso 9]>
         </v:textbox>
         </v:rect>
         <![endif]-->
      </td>
    </tr>
  </table>

最新更新