仅 Android Gmail 中的电子邮件中出现空白。我该如何解决这个问题?

2024-03-31

我的电子邮件可以在所有电子邮件客户端(Outlook、iOS、Litmus 等)中完美运行,但 Android 上的 Gmail 应用程序除外。

在该应用程序中,它出现了间隙。这是问题的屏幕截图,这只是一个基本的概念证明:

下面是一些 HTML,问题发生在表格单元格 (td) 中的嵌套表格中。因此,它有一组表格和单元格,其中包含与单元格大小相同的图像。

这是 html 的 jsfiddle:http://jsfiddle.net/cntdsp5p/ http://jsfiddle.net/cntdsp5p/

这是 html:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html style="margin-top: 0px !important; padding-top: 0px !important">
<head>
<style type="text/css">
    html, body{ margin-top: 0px !important; padding-top: 0px !important; }
    body{ background-color:#FFFFFF; margin-top: 0px !important; padding-top: 0px !important; font-family:sans-serif; }
    table{ margin-top: 0px !important; padding-top: 0px !important; }
    a img{ color:#000001 !important; }

.wysiwyg-text-align-right{ text-align: right; }
.wysiwyg-text-align-center { text-align: center; }
.wysiwyg-text-align-left{ text-align: left; }
.wysiwyg-text-align-justify{ text-align: justify; }

body{ text-shadow:none; padding-top:0; padding-right:0; padding-bottom:0; padding-left:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0; color:#000000 !important; font-family:Arial; font-size:14px; line-height:24px; }

h1{ text-shadow:none; padding-top:0; padding-right:0; padding-bottom:0; padding-left:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0; color:#000000 !important; font-weight:400; font-family:Arial; font-size:36px; line-height:44px; }

h2{ text-shadow:none; padding-top:0; padding-right:0; padding-bottom:0; padding-left:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0; color:#000000 !important; font-weight:400; font-family:Arial; font-size:24px; line-height:32px; }

h3{ text-shadow:none; padding-top:0; padding-right:0; padding-bottom:0; padding-left:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0; color:#000000 !important; font-weight:400; font-family:Arial; font-size:15px; line-height:21px; }

p{ text-shadow:none; padding-top:0; padding-right:0; padding-bottom:0; padding-left:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0; color:#000000 !important; font-family:Arial; font-size:14px; line-height:24px; }

a{ text-shadow:none; padding-top:0; padding-right:0; padding-bottom:0; padding-left:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0; color:#1122CC !important; text-decoration:underline; }




        .mi-all{ display: block; }
        .mi-desktop{ display: block; }

    .mi-mobile{
        display: none;
        font-size: 0; 
        max-height: 0; 
        line-height: 0; 
        padding: 0;
        float: left;
        overflow: hidden;
        mso-hide: all; /* hide elements in Outlook 2007-2013 */
    }


</style>

<style type="text/css" >

    @media only screen and (max-device-width: 480px), screen and (max-width: 480px), screen and (orientation: landscape) and (max-width: 630px) {

        /* very important! all except 'all' and this current type get a display:none; */
        .mi-desktop{ display: none !important; }

        /* then show the mobile one */
        .mi-mobile{ 
            display: block !important;
            font-size: 12px !important;
            max-height: none !important;
            line-height: 1.5 !important;
            float: none !important;
            overflow: visible !important;
        }
    }

</style>


   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

</head>
<body style="background: #FFFFFF; color: #000000 !important; font-family: Arial; font-size: 14px; line-height: 24px; margin: 0px 0 0 0px; padding: 0px 0 0; text-shadow: none" bgcolor="#FFFFFF">
<style type="text/css">
body {
margin-top: 0px !important; padding-top: 0px !important;
}
body {
background-color: #FFFFFF; margin-top: 0px !important; padding-top: 0px !important; font-family: sans-serif;
}
body {
text-shadow: none; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; color: #000000 !important; font-family: Arial; font-size: 14px; line-height: 24px;
}
</style>
<!-- admin --><div class="mi-desktop" style="display: block">
    <table width="100%" cellspacing="0" cellpadding="0" align="center" style="background: #FFFFFF; border-collapse: collapse; border-spacing: 0px; border: 0px none; margin: 0px; padding: 0px" bgcolor="#FFFFFF">
        <tbody>
            <tr align="center" style="border-collapse: collapse; border-spacing: 0px; border: 0px none">
                <td valign="top" align="center" style="border-collapse: collapse; border-spacing: 0px; border: 0px none">
                    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" style="border-collapse: collapse; border-spacing: 0px; border: 0px none; margin: 0px; padding: 0px">
                        <tbody>
                                <tr align="left" style="border-collapse: collapse; border-spacing: 0px; border: 0px none">
                                    <td width="100%">
                                        <table width="100%" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0px; border: 0px none; margin-top: 0px !important; padding-top: 0px !important">
                                            <tbody>
                                                <tr align="left" style="border-collapse: collapse; border-spacing: 0px; border: 0px none">
                                                    <td width="100%">
                                                        <table width="100%" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0px; border: 0px none; margin-top: 0px !important; padding-top: 0px !important">
                                                            <tbody>
                                                                <tr style="border-collapse: collapse; border-spacing: 0px; border: 0; height: 50px">
<td width="100%" valign="top" height="50" align="left" style="background: #FFFFFF" bgcolor="#FFFFFF"><img width="1" height="50" style="border: 0; display: block; line-height: 1; opacity: 0; padding: 0px" src="http://mailrox-prod.s3.amazonaws.com/clear.gif" alt=""></td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
        </tbody>
    </table>
</div>
<table align="center" cellpadding="0" cellspacing="0" width="100%" style="background: #FFFFFF; border-collapse: collapse; border-spacing: 0; border: 0; margin: 0px 0 0; padding: 0px 0 0" bgcolor="#FFFFFF">
<tr align="center" style="border-collapse: collapse; border-spacing: 0; border: 0">
                        <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; border: 0">

<div class="mi-all" style="display: block">
    <table class="mi-all" width="566" align="center" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; display: block; margin: 0px 0 0; padding: 0px 0 0">
        <tbody>
                <tr align="left" style="border-collapse: collapse; border-spacing: 0; border: 0">
        <td width="566">
            <table width="566" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin-top: 0px !important; padding-top: 0px !important">
                <tbody>
                    <tr style="border-collapse: collapse; border-spacing: 0; border: 0">
                            <td width="566" height="117" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218755/490d09a47432a346ff8b0e78081c0893-original.jpg?1423832407" style="border: 0; display: block; line-height: 0px">



</td>

                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr align="left" style="border-collapse: collapse; border-spacing: 0; border: 0">
        <td width="566">
            <table width="566" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin-top: 0px !important; padding-top: 0px !important">
                <tbody>
                    <tr style="border-collapse: collapse; border-spacing: 0; border: 0">
                            <td width="62" height="208" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218759/19ddd566053aea03ffa236be1c3c7106-original.jpg?1423832410" style="border: 0; display: block; line-height: 0px">



</td>

                            <td width="437" align="left" valign="top">
    <table width="437" align="center" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin: 0px 0 0; padding: 0px 0 0">
        <tbody> <tr align="left" style="border-collapse: collapse; border-spacing: 0; border: 0">
        <td width="437">
            <table width="437" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin-top: 0px !important; padding-top: 0px !important">
                <tbody>
                    <tr style="border-collapse: collapse; border-spacing: 0; border: 0">
                            <td width="437" height="75" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218763/34af46b5e9b769c00b2ecdb0e18fb2f6-original.jpg?1423832414" style="border: 0; display: block; line-height: 0px">



</td>

                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr align="left" style="border-collapse: collapse; border-spacing: 0; border: 0">
        <td width="437">
            <table width="437" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin-top: 0px !important; padding-top: 0px !important">
                <tbody>
                    <tr style="border-collapse: collapse; border-spacing: 0; border: 0">
                            <td width="96" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218767/bd9eaee611c770ba4e1cf622dc3a8c2d-original.jpg?1423832418" style="border: 0; display: block; line-height: 0px">



</td>

                            <td width="52" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218769/45fec80922c3f48137c596c3ff749dfb-original.jpg?1423832419" style="border: 0; display: block; line-height: 0px">



</td>

                            <td width="83" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218771/b47339b9fc571427b652bddc8ff27308-original.jpg?1423832420" style="border: 0; display: block; line-height: 0px">



</td>

                            <td width="40" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218773/82abd90c62a69a367df080c998d95921-original.jpg?1423832422" style="border: 0; display: block; line-height: 0px">



</td>

                            <td width="42" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218775/bdc152f96b37a54241d4148d49370f3b-original.jpg?1423832423" style="border: 0; display: block; line-height: 0px">



</td>

                            <td width="41" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218777/6c5cecb72d86a5fd28304bc2d3c2251d-original.jpg?1423832425" style="border: 0; display: block; line-height: 0px">



</td>

                            <td width="83" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218778/1765f64e482ae6f647ac92dca014d991-original.jpg?1423832425" style="border: 0; display: block; line-height: 0px">



</td>

                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr align="left" style="border-collapse: collapse; border-spacing: 0; border: 0">
        <td width="437">
            <table width="437" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin-top: 0px !important; padding-top: 0px !important">
                <tbody>
                    <tr style="border-collapse: collapse; border-spacing: 0; border: 0">
                            <td width="437" height="84" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218766/674169b8b96dea256dd794836c855230-original.jpg?1423832416" style="border: 0; display: block; line-height: 0px">



</td>

                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
</tbody>
    </table>
</td>

                            <td width="67" height="208" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218762/425f7c48b0e4215a8f3109dc03927e76-original.jpg?1423832412" style="border: 0; display: block; line-height: 0px">



</td>

                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr align="left" style="border-collapse: collapse; border-spacing: 0; border: 0">
        <td width="566">
            <table width="566" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin-top: 0px !important; padding-top: 0px !important">
                <tbody>
                    <tr style="border-collapse: collapse; border-spacing: 0; border: 0">
                            <td width="566" height="185" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218758/8eb37cb41486fd5f0528650bea1fe398-original.jpg?1423832409" style="border: 0; display: block; line-height: 0px">



</td>

                    </tr>
                </tbody>
            </table>
        </td>
    </tr>

        </tbody>
    </table>
</div>


                        </td>
                    </tr>
            </table>



  </body>
</html>

同样,这封电子邮件在除 Android Gmail 应用程序之外的所有应用程序中都能完美运行,我很想知道如何修复它。

Thanks.


给你的桌子cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: none;"和你的图像style="display: block;"这当然是一个好的开始,但遗憾的是 gmail android 应用程序对图像大小做了一些额外奇怪的事情。它与应用程序如何尝试使电子邮件适合您的屏幕有关(您可能会注意到纵向和横向模式之间的差异)。


水平间隙(列之间)的解决方案:

要修复水平间隙,您可以为图像提供内联样式width: 100%;在给予家长的同时<td>元素min-width:--px;。如果将最小宽度声明放在正确的元素上,您甚至可以只使用最小宽度声明。


垂直间隙(行之间)的解决方案:

这将为您留下两个垂直间隙,其中一个间隙可以通过为所有图像赋予宽度和高度属性来轻松解决。始终确保为所有固定大小的图像提供明确的宽度和高度。

第二个垂直间隙更难处理。当您将一个包含多行图像的表格嵌套在一个单元格内,而该单元格的兄弟姐妹没有此类嵌套表格时,似乎会出现此问题。这是这个问题的另一个例子 https://stackoverflow.com/q/27784834/2126792. 目前我还没有解决这种类型差距的方法......如果我找到或想出一个解决方案,我会在这里发布。

Edit:

我找到了似乎是解决方法here https://productforums.google.com/forum/#!topic/gmail/Fxt78gN5q5E,但是,我没有运气实施它。也许您会有更好的运气,但您可能必须更改 HTML 结构才能使其正常工作。总结一下解决方法:

重述问题 - Gmail 应用程序在调整表格大小时向上舍入,在调整图像大小时向下舍入。这可能会导致表格上的图像之间出现 1 像素的间隙。

  1. 所有都给<tr>s 的内联样式display: block; white-space: nowrap;.
  2. 所有都给<td>s 的内联样式display: inline-block;.
  3. 从您的文件中删除任何宽度或高度声明<td>包括min-width我们添加的用于修复水平间隙的样式(应该不再需要)。
  4. 删除之间的任何空格<td>s.
  5. 确保您的容器表有min-width.

Campaign Monitor 的 CSS 指南 https://www.campaignmonitor.com/css/在解决此问题时也可能对您有用。


这是我第一次修改的代码(一个垂直间隙,没有解决方法):

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html style="margin-top: 0px !important; padding-top: 0px !important">
<head>
<style type="text/css">
    html, body{ margin-top: 0px !important; padding-top: 0px !important; }
    body{ background-color:#FFFFFF; margin-top: 0px !important; padding-top: 0px !important; font-family:sans-serif; }
    table{ margin-top: 0px !important; padding-top: 0px !important; }
    a img{ color:#000001 !important; }

.wysiwyg-text-align-right{ text-align: right; }
.wysiwyg-text-align-center { text-align: center; }
.wysiwyg-text-align-left{ text-align: left; }
.wysiwyg-text-align-justify{ text-align: justify; }

body{ text-shadow:none; padding-top:0; padding-right:0; padding-bottom:0; padding-left:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0; color:#000000 !important; font-family:Arial; font-size:14px; line-height:24px; }

h1{ text-shadow:none; padding-top:0; padding-right:0; padding-bottom:0; padding-left:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0; color:#000000 !important; font-weight:400; font-family:Arial; font-size:36px; line-height:44px; }

h2{ text-shadow:none; padding-top:0; padding-right:0; padding-bottom:0; padding-left:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0; color:#000000 !important; font-weight:400; font-family:Arial; font-size:24px; line-height:32px; }

h3{ text-shadow:none; padding-top:0; padding-right:0; padding-bottom:0; padding-left:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0; color:#000000 !important; font-weight:400; font-family:Arial; font-size:15px; line-height:21px; }

p{ text-shadow:none; padding-top:0; padding-right:0; padding-bottom:0; padding-left:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0; color:#000000 !important; font-family:Arial; font-size:14px; line-height:24px; }

a{ text-shadow:none; padding-top:0; padding-right:0; padding-bottom:0; padding-left:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0; color:#1122CC !important; text-decoration:underline; }




        .mi-all{ display: block; }
        .mi-desktop{ display: block; }

    .mi-mobile{
        display: none;
        font-size: 0; 
        max-height: 0; 
        line-height: 0; 
        padding: 0;
        float: left;
        overflow: hidden;
        mso-hide: all; /* hide elements in Outlook 2007-2013 */
    }


</style>

<style type="text/css" >

    @media only screen and (max-device-width: 480px), screen and (max-width: 480px), screen and (orientation: landscape) and (max-width: 630px) {

        /* very important! all except 'all' and this current type get a display:none; */
        .mi-desktop{ display: none !important; }

        /* then show the mobile one */
        .mi-mobile{ 
            display: block !important;
            font-size: 12px !important;
            max-height: none !important;
            line-height: 1.5 !important;
            float: none !important;
            overflow: visible !important;
        }
    }

</style>


   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

</head>
<body style="background: #FFFFFF; color: #000000 !important; font-family: Arial; font-size: 14px; line-height: 24px; margin: 0px 0 0 0px; padding: 0px 0 0; text-shadow: none" bgcolor="#FFFFFF">
<style type="text/css">
body {
margin-top: 0px !important; padding-top: 0px !important;
}
body {
background-color: #FFFFFF; margin-top: 0px !important; padding-top: 0px !important; font-family: sans-serif;
}
body {
text-shadow: none; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; color: #000000 !important; font-family: Arial; font-size: 14px; line-height: 24px;
}
</style>
<!-- admin --><div class="mi-desktop" style="display: block">
    <table width="100%" cellspacing="0" cellpadding="0" align="center" style="background: #FFFFFF; border-collapse: collapse; border-spacing: 0px; border: 0px none; margin: 0px; padding: 0px" bgcolor="#FFFFFF">
        <tbody>
            <tr align="center" style="border-collapse: collapse; border-spacing: 0px; border: 0px none">
                <td valign="top" align="center" style="border-collapse: collapse; border-spacing: 0px; border: 0px none">
                    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" style="border-collapse: collapse; border-spacing: 0px; border: 0px none; margin: 0px; padding: 0px">
                        <tbody>
                                <tr align="left" style="border-collapse: collapse; border-spacing: 0px; border: 0px none">
                                    <td width="100%">
                                        <table width="100%" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0px; border: 0px none; margin-top: 0px !important; padding-top: 0px !important">
                                            <tbody>
                                                <tr align="left" style="border-collapse: collapse; border-spacing: 0px; border: 0px none">
                                                    <td width="100%">
                                                        <table width="100%" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0px; border: 0px none; margin-top: 0px !important; padding-top: 0px !important">
                                                            <tbody>
                                                                <tr style="border-collapse: collapse; border-spacing: 0px; border: 0; height: 50px">
<td width="100%" valign="top" height="50" align="left" style="background: #FFFFFF" bgcolor="#FFFFFF"><img width="1" height="50" style="border: 0; display: block; line-height: 1; opacity: 0; padding: 0px" src="http://mailrox-prod.s3.amazonaws.com/clear.gif" alt=""></td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
        </tbody>
    </table>
</div>
<table align="center" cellpadding="0" cellspacing="0" width="100%" style="background: #FFFFFF; border-collapse: collapse; border-spacing: 0; border: 0; margin: 0px 0 0; padding: 0px 0 0" bgcolor="#FFFFFF">
<tr align="center" style="border-collapse: collapse; border-spacing: 0; border: 0">
                        <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; border: 0">

<div class="mi-all" style="display: block">
    <table class="mi-all" width="566" align="center" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; display: block; margin: 0px 0 0; padding: 0px 0 0">
        <tbody>
                <tr align="left" style="border-collapse: collapse; border-spacing: 0; border: 0">
        <td width="566">
            <table width="566" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin-top: 0px !important; padding-top: 0px !important">
                <tbody>
                    <tr style="border-collapse: collapse; border-spacing: 0; border: 0">
                            <td width="566" height="117" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218755/490d09a47432a346ff8b0e78081c0893-original.jpg?1423832407" style="border: 0; display: block; line-height: 0px">



</td>

                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr align="left" style="border-collapse: collapse; border-spacing: 0; border: 0">
        <td width="566">
            <table width="566" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin-top: 0px !important; padding-top: 0px !important">
                <tbody>
                    <tr style="border-collapse: collapse; border-spacing: 0; border: 0">
                            <td width="62" height="208" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;min-width:62px;">



            <img width="62" height="208" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218759/19ddd566053aea03ffa236be1c3c7106-original.jpg?1423832410" style="border: 0; display: block; line-height: 0px;width:100%;">



</td>

                            <td width="437" align="left" valign="top">
    <table width="437" align="center" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin: 0px 0 0; padding: 0px 0 0">
        <tbody> <tr align="left" style="border-collapse: collapse; border-spacing: 0; border: 0">
        <td width="437">
            <table width="437" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin-top: 0px !important; padding-top: 0px !important">
                <tbody>
                    <tr style="border-collapse: collapse; border-spacing: 0; border: 0">
                            <td width="437" height="75" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img width="437" height="75" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218763/34af46b5e9b769c00b2ecdb0e18fb2f6-original.jpg?1423832414" style="border: 0; display: block; line-height: 0px">



</td>

                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr align="left" style="border-collapse: collapse; border-spacing: 0; border: 0">
        <td width="437">
            <table width="437" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin-top: 0px !important; padding-top: 0px !important">
                <tbody>
                    <tr style="border-collapse: collapse; border-spacing: 0; border: 0">
                            <td width="96" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;min-width: 96px;">



            <img width="96" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218767/bd9eaee611c770ba4e1cf622dc3a8c2d-original.jpg?1423832418" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td>

                            <td width="52" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;min-width: 52px;">



            <img width="52" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218769/45fec80922c3f48137c596c3ff749dfb-original.jpg?1423832419" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td>

                            <td width="83" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;min-width: 83px;">



            <img width="83" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218771/b47339b9fc571427b652bddc8ff27308-original.jpg?1423832420" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td>

                            <td width="40" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;min-width: 40px;">



            <img width="40" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218773/82abd90c62a69a367df080c998d95921-original.jpg?1423832422" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td>

                            <td width="42" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;min-width: 42px;">



            <img width="42" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218775/bdc152f96b37a54241d4148d49370f3b-original.jpg?1423832423" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td>

                            <td width="41" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;min-width: 41px;">



            <img width="41" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218777/6c5cecb72d86a5fd28304bc2d3c2251d-original.jpg?1423832425" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td>

                            <td width="83" height="49" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;min-width: 83px;">



            <img width="83" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218778/1765f64e482ae6f647ac92dca014d991-original.jpg?1423832425" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td>

                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr align="left" style="border-collapse: collapse; border-spacing: 0; border: 0">
        <td width="437">
            <table width="437" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin-top: 0px !important; padding-top: 0px !important">
                <tbody>
                    <tr style="border-collapse: collapse; border-spacing: 0; border: 0">
                            <td width="437" height="84" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img width="437" height="84" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218766/674169b8b96dea256dd794836c855230-original.jpg?1423832416" style="border: 0; display: block; line-height: 0px">



</td>

                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
</tbody>
    </table>
</td>

                            <td width="67" height="208" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;min-width: 67px;">



            <img width="67" height="208" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218762/425f7c48b0e4215a8f3109dc03927e76-original.jpg?1423832412" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td>

                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr align="left" style="border-collapse: collapse; border-spacing: 0; border: 0">
        <td width="566">
            <table width="566" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin-top: 0px !important; padding-top: 0px !important">
                <tbody>
                    <tr style="border-collapse: collapse; border-spacing: 0; border: 0">
                            <td width="566" height="185" align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly">



            <img src="http://mailrox2-dev.s3.amazonaws.com/crops/3218758/8eb37cb41486fd5f0528650bea1fe398-original.jpg?1423832409" style="border: 0; display: block; line-height: 0px">



</td>

                    </tr>
                </tbody>
            </table>
        </td>
    </tr>

        </tbody>
    </table>
</div>


                        </td>
                    </tr>
            </table>



  </body>
</html>

这是我尝试实现解决方法的代码(仅表):

<table width="437" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; border-spacing: 0; border: 0; margin-top: 0px !important; padding-top: 0px !important; min-width: 437px;">
                <tbody>
                    <tr style="display: block; white-space: nowrap; border-collapse: collapse; border-spacing: 0; border: 0">
                            <td align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;display: inline-block;">



            <img width="96" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218767/bd9eaee611c770ba4e1cf622dc3a8c2d-original.jpg?1423832418" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td><td align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;display: inline-block;">



            <img width="52" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218769/45fec80922c3f48137c596c3ff749dfb-original.jpg?1423832419" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td><td align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;display: inline-block;">



            <img width="83" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218771/b47339b9fc571427b652bddc8ff27308-original.jpg?1423832420" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td><td align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;display: inline-block;">



            <img width="40" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218773/82abd90c62a69a367df080c998d95921-original.jpg?1423832422" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td><td align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;display: inline-block;">



            <img width="42" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218775/bdc152f96b37a54241d4148d49370f3b-original.jpg?1423832423" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td><td align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;display: inline-block;">



            <img width="41" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218777/6c5cecb72d86a5fd28304bc2d3c2251d-original.jpg?1423832425" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td><td align="left" valign="top" style="line-height: 0px; mso-line-height-rule: exactly;display: inline-block;">



            <img width="83" height="49" src="http://mailrox2-dev.s3.amazonaws.com/crops/3218778/1765f64e482ae6f647ac92dca014d991-original.jpg?1423832425" style="border: 0; display: block; line-height: 0px; width: 100%;">



</td>

                    </tr>
                </tbody>
            </table>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

仅 Android Gmail 中的电子邮件中出现空白。我该如何解决这个问题? 的相关文章

  • 以编程方式将文本颜色设置为主要 Android 文本视图

    如何设置我的文本颜色TextView to android textColorPrimary以编程方式 我已经尝试了下面的代码 但它将 textColorPrimary 和 textColorPrimary Inverse 的文本颜色始终设
  • 为什么是 javascript:history.go(-1);无法在移动设备上工作?

    首先 一些背景 我有一个向用户呈现搜索页面 html 表单 的应用程序 填写标准并单击 搜索 按钮后 结果将显示在标准部分下方 在结果列表中 您可以通过单击将您带到新页面的链接来查看单个结果的详细信息 在详细信息页面中 我添加了一个 返回结
  • Android Studio 与本地网络共享上的项目文件

    这是我的设置 Android Studio 项目文件位于 Ubuntu 14 10 盒子上的共享文件夹中 尝试在 Windows 8 机器上运行 Android Studio 1 0 2 并将 U 驱动器映射到包含项目文件的 Ubuntu
  • 图像作为电子邮件附件

    我想构建一个应用程序 我可以在电子邮件中附加图像 打开图像并将其设置为我的壁纸 我想让它跨平台 所以你能告诉我是否可以使用phonegap 或者我是否必须为iphone和android构建一个本机应用程序 您好 如果您只想通过电子邮件附加图
  • 在requestAnimationFrame中使用clearRect不显示动画

    我正在尝试在 HTML5 画布上做一个简单的 javascript 动画 现在我的画布是分层的 这样当我收到鼠标事件时 背景层不会改变 但带有头像的顶层会移动 如果我使用 requestAnimationFrame 并且不清除屏幕 我会看到
  • 如何在谷歌地图android上显示多个标记

    我想在谷歌地图android上显示带有多个标记的位置 问题是当我运行我的应用程序时 它只显示一个位置 标记 这是我的代码 public class koordinatTask extends AsyncTask
  • okhttp 获取失败响应

    我已经在我的 android 客户端中实现了 okhttp 来进行网络调用 当我收到失败响应时 我会收到失败代码以及与该代码相关的文本作为消息 但我没有收到服务器发送给我的自定义失败响应 在我实施的代码中的失败响应中 我收到的消息只是 错误
  • 如何在使用页面锚点导航时设置“激活”类以在 Angular 2 中引导导航栏?

    我正在使用 Angular 2 和 Bootstrap 4 创建一个单页网站 我创建了一个始终位于页面顶部的导航栏组件 并且我正在使用页面锚点导航 id 请注意 我还没有创建路由模块 到目前为止还没有必要这样做 导航栏代码如下
  • 动态img(或视频)标签根本不加载资源,HTTP请求处于“待处理”状态

    我尝试使用以下方法在 Web 应用程序上加载资源时遇到一些问题img or videoHTML 标签 我在我的应用程序中使用 Angular 并动态设置src的参数img标签 使用ng src src 指示 没有那么多图像和资源需要加载 在
  • 提交表单并重定向页面

    我在 SO 上看到了很多与此相关的其他问题 但没有一个对我有用 我正在尝试提交POST表单 然后将用户重定向到另一个页面 但我无法同时实现这两种情况 我可以获取重定向或帖子 但不能同时获取两者 这是我现在所拥有的
  • Android:无法使用 DbHelper 和 Contract 类将数据插入 SQLite

    public class Main2Activity extends AppCompatActivity private EditText editText1 editText2 editText3 editText4 private Bu
  • 如何阻止破折号自行包裹?

    我有一个标题 标题最后一个单词的末尾是一个破折号 单词和破折号之间没有空格 当浏览器窗口变小时 破折号会中断并换成新行 在自己的行上有一个破折号是不好的排版 如何停止破折号之前的换行 以便最后一个单词运行到新行 这是代码 h1 XYZ co
  • 在 Samsung Galaxy S5 Android 5.0 上使用 MediaPlayer 加载音频流需要超过 10 秒

    由于更新至 Android 5 0 MediaPlayer 在 Samsung Galaxy S5 上无法正常工作 启动音频流后加载时间超过 10 秒 示例代码 MediaPlayer mPlayer new MediaPlayer Str
  • Android - 以编程方式选择菜单选项

    有没有办法以编程方式选择菜单选项 基本上 我希望视图中的按钮能够执行与按特定菜单选项相同的操作 我正在考虑尝试调用 onOptionsItemSelected MenuItem item 但我不知道要为菜单项添加什么 是的 有一种方法可以选
  • 问题:为什么React Native Video不能全屏播放视频?

    我正在react native 0 57 7 中为android和ios创建一个应用程序并使用反应本机视频 https github com react native community react native video播放上传到的视频
  • 没有支持 FEATURE_CAMERA_EXTERNAL 的 Android 设备

    根据this doc https source android com devices camera external usb cameras一些 Android 设备允许使用 Camera2 API 访问外部 USB 摄像头 我检查了大约
  • 如何获取浏览器视口中当前显示的内容

    如何获取当前正在显示长文档的哪一部分的指示 例如 如果我的 html 包含 1 000 行 1 2 3 9991000 并且用户位于显示第 500 行的中间附近 那么我想得到 500 n501 n502 或类似的内容 显然 大多数场景都会比
  • 无效字符错误:“fred”

    我确信他一定是一个新手问题 简单来说 我想定义我的第一个 Polymer dart 组件 只是我一直在同一个减速带上踢脚趾 为了使事情变得非常简单 我将其简化为一个非常简单的示例 我做了一个简单的rename示例 跑表 来自 Dart 组件
  • Git 实验分支还是单独的实验存储库?

    我正在开发一个 Android 应用程序 并且在整个开发周期中一直使用 Git 现在 我想构建并发布实验性功能 供人们尝试和安装 同时仍将原始的 稳定的应用程序安装在他们的设备上 现在 这意味着我需要使用不同的包名称 这会更改开发项目中的一
  • 有没有任何代码可以在android中设置壁纸而无需裁剪和缩放?

    我正在创建一个画廊应用程序 我的第一个应用程序 这是我的代码 Bitmap bmd BitmapFactory decodeStream is try getApplicationContext setWallpaper bmd catch

随机推荐