【发布时间】:2016-01-14 01:01:34
【问题描述】:
我的 HTML 中有 2 个左对齐的表格(用于响应电子邮件 HTML)。 Outlook 仅将它们堆叠为我无法删除的 1 个可悲像素。 这两张图片是相同的(出于测试原因)。但是 Outlook 出于某种未知原因在第二个表格的左边框上插入了 1 个像素。
我放弃了!谁能想出如何删除它以使 2 个表适合父表,因此不要从上到下堆叠?
此处的 HTML 代码(我在 Outlook 中附加了收到的电子邮件中的图像,就像在浏览器中一样,表格是正确的): https://jsfiddle.net/pzamxm9c/#&togetherjs=4x0GFwld1q
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
<style type="text/css">
table {border-collapse: collapse; margin:0;padding:0;mso-table-lspace:0pt; mso-table-rspace:0pt;}
</style>
</head>
<body style="font-size:0px; line-height:0px;">
<table border="0" width="580" cellspacing="0" cellpadding="0" bgcolor="#FFCC00">
<tr>
<td align="left">
<table align="left" width="288" height="329" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" bgcolor="#00CC99" style="font-size:1; height:1px;mso-table-lspace:0;mso-table-rspace:0;">
<p style="mso-table-lspace:0;mso-table-rspace:0;font-size:2px;line-height:2px;">
<img align="left" src="http://mail.ventura24.es/dialog/elements/eventlayer_left_2.png" alt="Bote: 47 millones" width="289" style=" border: 0px none;" border="0" />
</p>
</td>
</tr>
</table>
<table align="left" width="288" height="329" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" bgcolor="#00CC99" style="font-size:1; height:1px;mso-table-lspace:0;mso-table-rspace:0;">
<p style="mso-table-lspace:0;mso-table-rspace:0;font-size:2px;line-height:2px;">
<img align="left" src="http://mail.ventura24.es/dialog/elements/eventlayer_left_2.png" alt="Bote: 47 millones" width="289" style=" border: 0px none;" border="0" />
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
【问题讨论】:
标签: css outlook html-email