首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >《EDM专栏》问题展望

《EDM专栏》问题展望
EN

Stack Overflow用户
提问于 2016-05-12 12:37:47
回答 1查看 154关注 0票数 0

我正在构建一个EDM电子邮件,我试图让它在多个邮件服务器上看起来一致,并响应不同大小的设备。

我已经使用<table>标签对其进行了编码。我有一个部分,这应该显示为桌面上的2列和移动上的1列。

这适用于手机、gmail、多种浏览器等。然而,它在outlook上看起来并不正确。这些列将不会彼此相邻。从前景上看,它们似乎太宽了,不能相邻坐在一起。我一直在减少宽度来解决这个问题。然而,它不起作用。

代码语言:javascript
复制
<table cellpadding="0" cellspacing="0" border="0" align="center" width="90%">
    <tr>
        <td>
            <table cellpadding="0" cellspacing="0" border="0" width="36%" align="left" class="fullWidthBlockMobile">
                <tr><td height="15"></td></tr>
                <tr>
                    <td valign="top" style="color:#ffffff; font-weight: normal; -webkit-font-smoothing: antialiased;">
                        <font face="'Source Sans Pro', sans-serif, 'Helvetica Neue', Helvetica, Arial">[firstname,fallback=Hi there],</font><br/><br/>
                        <font face="'Source Sans Pro', sans-serif, 'Helvetica Neue', Helvetica, Arial">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</font><br/><br/>
                        <font style="color:#00AFEF; font-weight: bold; -webkit-font-smoothing: antialiased;" face="'Source Sans Pro', sans-serif, 'Helvetica Neue', Helvetica, Arial">Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</font><br/><br/>
                    </td>
                </tr>
            </table>

            <table cellpadding="0" cellspacing="0" border="0" width="54%" align="right" class="fullWidthBlockMobile">
                <tr><td height="15"></td></tr>
                <tr>
                    <td align="center" valign="top">
                        <img src="images/card.png" alt="" style="max-width:100%"/>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
EN

回答 1

Stack Overflow用户

发布于 2016-10-07 15:26:31

<!--[if mso | IE]>可以在Outlook上运行,所以你可以像这样尝试

代码语言:javascript
复制
<table cellpadding="0" cellspacing="0" style="font-size:0px;" border="0" width="100%">
  <tbody>
    <tr>
      <td style="text-align:left;vertical-align:top;border:none;font-size:0px;padding:0px;">
        <!--[if mso | IE]>
          <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tbody>
              <tr>
        <![endif]-->
        <!--[if mso | IE]>
            <td width="50%" style="width:50%;">
          <![endif]-->
        <table cellpadding="0" cellspacing="0" style="width:50%;" align="left" border="0">
          <tbody>
            <tr>
              <td style="text-align:left;" align="left" valign="top"></td>
            </tr>
          </tbody>
        </table>
        <!--[if mso | IE]>
            </td>
          <![endif]-->
        <!--[if mso | IE]>
            <td width="50%" style="width:50%;">
          <![endif]-->
        <table cellpadding="0" cellspacing="0" style="width:50%;" align="left" border="0">
          <tbody>
            <tr>
              <td style="text-align:left;" align="left" valign="top"></td>
            </tr>
          </tbody>
        </table>
        <!--[if mso | IE]>
            </td>
          <![endif]-->
        <!--[if mso | IE]>
              </tr>
            </tbody>
          </table>
        <![endif]-->
      </td>
    </tr>
  </tbody>
</table>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37177380

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档