Outlook 2003无法正确呈现我们的MJML代码 [英] Outlook 2003 is not rendering correctly our MJML code

查看:56
本文介绍了Outlook 2003无法正确呈现我们的MJML代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用

完整的代码在这里,您可以在这里尝试: https://mjml.io/try-it-live/Bk5Gu1w9L

 < mjml owa ="desktop">< mj-head>< mj-breakpoint width ="320px"/>< mj-style>@media屏幕和(最大宽度:320px){.show_on_desktop td {显示:无!重要;}}@media屏幕和(最小宽度:321px){.show_on_mobile td {显示:无!重要;}}.show_on_mobile td {mso-hide:全部;字号:0;最大高度:0;行高:0}</mj-style></mj-head>< mj-body>< mj-raw><!-[如果!mso]>< \!-></mj-raw>< mj-section>< mj列css-class ="show_on_mobile">< mj-image src ="https://www.ecom-ex.com/fileadmin/user_upload/images/products/one-pager/gallery/ex-handy_10_dz1dz2/ex-handy_10_dz1_teaser_1.png"</mj-图像>< mj-text>在移动设备上显示</mj-text></mj-column></mj-section>< mj-raw><!-<![endif]-></mj-raw>< mj-section>< mj列css-class ="show_on_desktop">< mj-image src ="http://c64os.com/resources/c64c-system.jpg"></mj-image>< mj-text>在桌面上显示</mj-text></mj-column></mj-section></mj-body></mjml> 

渲染已通过 EmailOnAcid 进行了测试,没有提供免费的试玩帐户.

我们尝试了许多版本,这是迄今为止最好的版本,但是Outlook 2003(和其他一些版本)却没有像我们期望的那样显示它.

我们正在讨论忽略某些旧客户端(如Outlook 2003),但最好的解决方案是忽略它.

解决方案

我知道这次对话有点过时,但是@TonyDallimore:您会尝试在Windows XP上运行2020游戏吗?

即使MJML是纯HTML,HTML也是从2003年开始发展的;-)甚至Microsoft早就停止了对2k3的支持.

这就像您要向加油站的那个家伙询问含铅汽油一样,因为您的1970年代的汽车最初是为此而制造的;-)

如果您是Outlook 2003用户,我是否可以简单地建议您尝试获取一些较新的信息?您可以使用大量的免费软件.而且其中许多功能甚至与Outlook 2003一样完整,并且可以将您过去和现在的电子邮件导入到新的邮件管理器中:-)

如果其他人是Outlook 2003用户,我不知道您可能与该人有多近,甚至不知道您个人使用该版本,但是我个人会告诉您不要担心他们.

也许您可以在电子邮件的顶部和/或底部贴上一个友好的注释,出于安全目的,过时的电子邮件管理器可以"选择可能".我的电子邮件的MJML格式不受支持.;-)

希望这可以帮助您更清楚地了解情况,梅林里吉斯

I want to make a responsive email template with MJML, it looks good on most of the email rendering clients, but (of course) Outlook 2003 is doing it differently, as you can see in the image: Outlook 2003 is rendering both, the mobile and the desktop version.

The complete code is here which you can try here: https://mjml.io/try-it-live/Bk5Gu1w9L

<mjml owa="desktop">
  <mj-head>
    <mj-breakpoint width="320px" />
    <mj-style>

        @media screen and (max-width:320px) {
            .show_on_desktop td{
                display: none !important;
            }
        }

        @media screen and (min-width:321px) {
            .show_on_mobile td{
                display: none !important;

            }
        }

        .show_on_mobile td {
            mso-hide: all;
            font-size: 0;
            max-height: 0;
            line-height: 0;
      }
    </mj-style>


  </mj-head>
  <mj-body>
    <mj-raw><!--[if !mso]><\!--></mj-raw>
    <mj-section>
      <mj-column css-class="show_on_mobile">
        <mj-image src="https://www.ecom-ex.com/fileadmin/user_upload/images/products/one-pager/gallery/ex-handy_10_dz1dz2/ex-handy_10_dz1_teaser_1.png"></mj-image>
        <mj-text>show on mobile</mj-text>
      </mj-column>
      </mj-section>
    <mj-raw><!-- <![endif]--></mj-raw>


    <mj-section>
      <mj-column css-class="show_on_desktop">
        <mj-image src="http://c64os.com/resources/c64c-system.jpg"></mj-image>
        <mj-text>show on desktop</mj-text>
      </mj-column>
    </mj-section>

  </mj-body>
</mjml>

The rendering is tested via EmailOnAcid which does not provide a free account to play around.

We tried many versions, this was the best looking so far, but Outlook 2003 (and some others) are showing it not as we were hoping for.

We are discussing about ignoring some old clients as Outlook 2003, but a solution instead of ignoring it, would be really nice.

解决方案

I know this conversation dates a bit, but @TonyDallimore : would you try to run a 2020 game on Windows XP?

Even if MJML is pure HTML, HTML also evolved since 2003 ;-) Even Microsoft stopped supporting 2k3 quite a while ago.

It's as if you were asking the guy at the gas station for leaded gas, because your 1970's car was originally made for that ;-)

If you are the Outlook 2003 user, may I simply suggest you try to get something a little bit more recent? there are tons of freeware you can use. And many of them are as complete if not more than Outlook 2003 and can import your past and present emails into your new mail manager :-)

If someone else is the Outlook 2003 user, I don't know how close you may be to that person, or even if you know of anyone who personally uses that version, but I personally would tell you to just NOT worry about them.

Maybe you could put a friendly note at the top and/or bottom of your email that for security purposes, outdated email managers "may" not be supported my the MJML format of the email. ;-)

Hoping this helps you understand a bit clearer the situation, merlinregis

这篇关于Outlook 2003无法正确呈现我们的MJML代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆