为什么发送时事通讯中的图像之间有空格?
我有一份简讯要发送,但 Yahoo、Gmail 和 MSN 中的行之间出现了一些额外的空格。
但这就是你所看到的(有趣的是,在 jsfiddle 中,它与 Yahoo 等相同) - 请注意图像之间的灰色条:
所有边框均为 0,所有边距均为 0。你看到什么了吗?
尝试过:
<table width="640" border="0" cellspacing="0" cellpadding="0" align="center" style="border-collapse:collapse;border-spacing:0;">
但还是一样。
I have a newsletter to send, but some extra spaces appear between the rows in Yahoo, Gmail and MSN.
But this is what you see (funny that in jsfiddle it’s the same as Yahoo etc.) — notice the grey bars between the images:
All borders are 0, all margins are 0. Do you see anything?
Tried with:
<table width="640" border="0" cellspacing="0" cellpadding="0" align="center" style="border-collapse:collapse;border-spacing:0;">
but still the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
添加此内容:
在 Chrome 15 中为我修复了小提琴。我不能发誓这也适用于各种邮件客户端,但它可能会起作用。
当我必须处理 HTML 电子邮件时,我使用 Email on Acid 来检查各种邮件客户端的结果。值得一看。
Adding this:
fixed the fiddle for me in Chrome 15. I couldn’t swear that this will apply to the various mail clients too, but it might work.
When I have to do HTML e-mails I use Email on Acid to check the results in various mail clients. It’s worth a look.
尝试将以下 CSS 添加到您的代码中
,并添加每个 a 内部图像的高度。这应该消除表中的空白。
看看jsfiddle(我只对第一行进行了更改)
http://jsfiddle.net/FmyS5 /9/
Try do add the following CSS to your Code
And add to each a the height of the image inside. That should remove the gaps in the table.
Take a look at the jsfiddle (I only did the changes for the first row)
http://jsfiddle.net/FmyS5/9/
这似乎可以解决问题;
...但它也会对页脚造成一些其他损坏。
This seems to solve it;
...but it also causes some other damage to the footer.