删除表格中的图像之间的白色间距

编程入门 行业动态 更新时间:2024-10-24 17:28:46
本文介绍了删除表格中的图像之间的白色间距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我知道这已经被覆盖,但解决方案并没有帮助我 - 我不是一个程序员,但我可以处理基本的HTML代码。我试图发送一个HTML电子邮件,其中有11个图像放在一个表格中,成为一个大图像 - 然而,当我发送它时,行之间出现白线。

I know this has been covered before but the solutions didn't help me - i'm not a programmer but i can handle basic HTML code. I am trying to send a HTML email out that has 11 images placed in a table to become one big image - however white lines appear between rows when i send it.

I将表格样式设置为 border =0cellpadding =0cellspacing =0但这没有帮助 - 任何人都可以给我建议吗?

I have the table style set with border="0" cellpadding="0" cellspacing="0" but this doesn't help - can anyone please give me advice? Also as i am not a programmer I may not understand any complex answers!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Untitled document</title> </head> <body> <!-- Save for Web Slices (toast offer mailer 2.jpg) --> <table style="height: 920px;" id="Table_01" width="650" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td colspan="2"><a href="www.metroplan.co.uk/2012/#/4/"> <img src="mail.bridgemailsystem/pms/graphics/metroplan/toast-offer-mailer-2_01.jpg" width="236" height="201" border="0" style="border: 0;"></a></td> <td colspan="3"><a href="www.metroplan.co.uk/2012/#/78/"> <img src="mail.bridgemailsystem/pms/graphics/metroplan/toast-offer-mailer-2_02.jpg" width="177" height="201" border="0" style="border: 0;"></a></td> <td colspan="2"><a href="www.metroplan.co.uk/2012/#/10/"><img src="mail.bridgemailsystem/pms/graphics/metroplan/toast-offer-mailer-2_03.jpg" width="237" height="201" border="0" style="border: 0;"></a></td> </tr> <tr> <td><img src="mail.bridgemailsystem/pms/graphics/metroplan/toast-offer-mailer-2_04.jpg" width="152" height="155"></td> <td colspan="3"><a href="www.metroplan.co.uk/2012/#/116/"> <img src="mail.bridgemailsystem/pms/graphics/metroplan/toast-offer-mailer-2_05.jpg" width="173" height="155" border="0" style="border: 0;"></a></td> <td colspan="2"><a href="www.metroplan.co.uk/2012/#/42/"> <img src="mail.bridgemailsystem/pms/graphics/metroplan/toast-offer-mailer-2_06.jpg" width="180" height="155" border="0" style="border: 0;"></a></td> <td><img src="mail.bridgemailsystem/pms/graphics/metroplan/toast-offer-mailer-2_07.jpg" width="145" height="155"></td> </tr> <tr> <td colspan="7"><img src="mail.bridgemailsystem/pms/graphics/metroplan/toast-offer-mailer-2_08.jpg" width="650" height="237"></td> </tr> <tr> <td colspan="7"><img src="mail.bridgemailsystem/pms/graphics/metroplan/toast-offer-mailer-2_09.jpg" width="650" height="231"></td> </tr> <tr> <td colspan="3"><a href="www.metroplan.co.uk/"> <img src="mail.bridgemailsystem/pms/graphics/metroplan/toast-offer-mailer-2_10.jpg" width="314" height="95" border="0" style="border: 0;"></a></td> <td colspan="4"><a href="mailto:marketing@metroplan.co.uk"> <img src="mail.bridgemailsystem/pms/graphics/metroplan/toast-offer-mailer-2_11.jpg" width="336" height="95" border="0" style="border: 0;"></a></td> </tr> <tr> <td><img src="images/spacer.gif" width="152" height="1"></td> <td><img src="images/spacer.gif" width="84" height="1"></td> <td><img src="images/spacer.gif" width="78" height="1"></td> <td><img src="images/spacer.gif" width="11" height="1"></td> <td><img src="images/spacer.gif" width="88" height="1"></td> <td><img src="images/spacer.gif" width="92" height="1"></td> <td><img src="images/spacer.gif" width="145" height="1"></td> </tr> </tbody> </table> <!-- End Save for Web Slices --> </body> </html>

推荐答案

在图片上,尝试使用

On images, try using

style="display:block"

它应该有效。

更多推荐

删除表格中的图像之间的白色间距

本文发布于:2023-11-12 01:06:52,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:间距   表格   图像   白色

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!