Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Gmail应用程序:内联图像之间的水平1px间距(在<;td>;中的图像)_Android_Html_Email_Gmail - Fatal编程技术网

Android Gmail应用程序:内联图像之间的水平1px间距(在<;td>;中的图像)

Android Gmail应用程序:内联图像之间的水平1px间距(在<;td>;中的图像),android,html,email,gmail,Android,Html,Email,Gmail,在Android Gmail应用程序中,内联图像之间有时会有1px的空间(多个包含图像)。这将把最右边的图像推到电子邮件框架之外。这似乎发生在特定尺寸的图像上,可能与表/布局的大小有关 下面是代码示例。附上两个截图示例 描述了错误,但没有修复 我尝试过的:很多。我在提到的谷歌产品论坛帖子中尝试了这些技巧,但没有一个奏效 包含所有标准解决方法的标记生成的标记仍然显示此错误 在Acid测试的电子邮件中,问题是间歇性的。有时它只会出现在实际设备上 屏幕截图,第一个有破碎的图像,但它说明了图像的最终位置

在Android Gmail应用程序中,内联图像之间有时会有1px的空间(多个包含图像)。这将把最右边的图像推到电子邮件框架之外。这似乎发生在特定尺寸的图像上,可能与表/布局的大小有关

下面是代码示例。附上两个截图示例

描述了错误,但没有修复

我尝试过的:很多。我在提到的谷歌产品论坛帖子中尝试了这些技巧,但没有一个奏效

包含所有标准解决方法的标记生成的标记仍然显示此错误

在Acid测试的电子邮件中,问题是间歇性的。有时它只会出现在实际设备上

屏幕截图,第一个有破碎的图像,但它说明了图像的最终位置:

我写的电子邮件样本。完整文件


来自inkbrush主要演示的示例:

    <tr align="left" style="border-collapse: collapse;border-spacing: 0;border: 0;  ">
    <td>
        <table cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse;border-spacing: 0;border: 0; min-width:600px;">
            <tbody>
                <tr style="border-collapse: collapse;border-spacing: 0;border: 0;">
                    <td align="left" valign="top" style="   width:204px;  height:60px; ">

                        <img border="0" height="60" src="./497056_files/5ef86d691f3e7d7cf49f027d0f29d03d-original.jpg" style="display:block; line-height:0; border:0;  width:204px; max-width:204px; min-width:204px; height:60px; max-height:60px; min-height:60px;" width="204">


                    </td>

                    <td align="left" valign="top" style="   width:51px;  height:60px; ">

                        <img border="0" height="60" src="./497056_files/f8c41fc2b6d48fca6d4d0b1510c80a84-original.jpg" style="display:block; line-height:0; border:0;  width:51px; max-width:51px; min-width:51px; height:60px; max-height:60px; min-height:60px;" width="51">


                    </td>

                    <td align="left" valign="top" style="   width:49px;  height:60px; ">

                        <img border="0" height="60" src="./497056_files/c93fa6d4d1ffa2eb6a5a992205d1160a-original.jpg" style="display:block; line-height:0; border:0;  width:49px; max-width:49px; min-width:49px; height:60px; max-height:60px; min-height:60px;" width="49">


                    </td>

                    <td align="left" valign="top" style="   width:50px;  height:60px; ">

                        <img border="0" height="60" src="./497056_files/19df3e027e0c5e2391f76a22de1f0743-original.jpg" style="display:block; line-height:0; border:0;  width:50px; max-width:50px; min-width:50px; height:60px; max-height:60px; min-height:60px;" width="50">


                    </td>

                    <td align="left" valign="top" style="   width:52px;  height:60px; ">

                        <img border="0" height="60" src="./497056_files/28a69a7158c8ec60d7cadcbcb2cfe211-original.jpg" style="display:block; line-height:0; border:0;  width:52px; max-width:52px; min-width:52px; height:60px; max-height:60px; min-height:60px;" width="52">


                    </td>

                    <td align="left" valign="top" style="   width:194px;  height:60px; ">

                        <img border="0" height="60" src="./497056_files/caf6117f5e93df6c24631c06c09c06c6-original.jpg" style="display:block; line-height:0; border:0;  width:194px; max-width:194px; min-width:194px; height:60px; max-height:60px; min-height:60px;" width="194">


                    </td>

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

我可能已经找到了修复方法

如果不使用文字图像维度定义html属性width和height,而是执行width=“100%”height=“auto”,然后在css中设置最大宽度和最大高度,如:

<td><img src="image1" width="100%" height="auto" alt="" border="0" style="display:block; max-width:200px; max-height:30px"/></td>

<td><img src="image1" width="100%" height="auto" alt="" border="0" style="display:block; max-width:200px; max-height:30px"/></td>

<td><img src="image1" width="100%" height="auto" alt="" border="0" style="display:block; max-width:200px; max-height:30px"/></td>

那帮我修好了

通过

<td><img src="image1" width="100%" height="auto" alt="" border="0" style="display:block; max-width:200px; max-height:30px"/></td>

<td><img src="image1" width="100%" height="auto" alt="" border="0" style="display:block; max-width:200px; max-height:30px"/></td>

<td><img src="image1" width="100%" height="auto" alt="" border="0" style="display:block; max-width:200px; max-height:30px"/></td>