【问题标题】:Email problems with Mail client MacMail 客户端 Mac 的电子邮件问题
【发布时间】:2013-09-26 20:24:14
【问题描述】:

Mac 中的默认邮件客户端截取了此邮件的最后一部分。在激活链接内的图像之后,电子邮件的其余部分被剪切。

但在 iPhone、Windows Phone 和 Outlook 中,我可以看到所有电子邮件

    <div style="width: 100%; border-spacing: 0;">
        <div style="background-color: #ffffff;">
            <div style="height: 155px;">
                <img src="http://website.com/static/img/logo.jpg" />
            </div>
        </div>
        <div style="background-color: #cccccc;">
            <div style="height: 5px;"></div>
        </div>
        <div style="background-color: #f2f2f2;">
            <div style="padding: 20px;">
                <p>Some text</p>
                <br />
                <p>
                    <a href="http://website.com/activate/key123">
                        <img src="http://website.com/static/img/landing/img.jpg" />
                    </a>
                </p><p>MoreText</p>
            </div>
        </div>
    </div>

【问题讨论】:

    标签: macos email


    【解决方案1】:

    首先,在 html 电子邮件中,您应该使用表格,而不是 div。

    您的图片标签上没有高度和宽度,这可能是您的问题的原因。通常,您的图像标签应如下所示:

    <img style="margin: 0; border: 0; padding: 0; display: block;" src="" width="" height="" alt="">
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-18
      • 1970-01-01
      • 2014-12-01
      • 2013-03-03
      • 1970-01-01
      • 2010-11-09
      相关资源
      最近更新 更多