我花了两周的时间为此找到任何解决方案,但无法完成。如果你把每经过漂浮表,就会出现在Microsoft Outlook 2007/2010一个像素的差距,这使用Microsoft Word 2007中的HTML渲染引擎:Outlook 2007/2010中浮动表格之间的水平间距
我会感谢你的任何可行的解决方案 - 这并不是要把表格分开<td>
的。
下面是HTML代码复制它:
mso-
display: inline-table;
而不是align="left"
:<html> <head> <title>Outlook 2007/2010 horizontal gap</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <style type="text/css"> table { mso-table-lspace: 0pt; mso-table-rspace: 0pt; } </style> </head> <body bgcolor="#000000"> <table bgcolor="#ffff00" align="left"><tr><td> </td></tr></table> <table bgcolor="#ffff00" align="left"><tr><td> </td></tr></table> </body> </html>
我到目前为止已经试过没有运气的CSS属性
border-collapse: collapse
和border-spacing: 0
- 添加
border: 1px solid red;
将除去间隙,但增加的表 - 其它
display
的,padding
和margin
- 非相关或弃用HTML属性的宽度(
rules
之间 - 去除空格,
frame
,border
等)<td>
和/或<table>
<table>
元件 乐趣因素:
如果你把这两个表到一个表,多余的缝隙的宽度将增加到2个像素。
不,这不会对问题有所帮助。表格边界之间的差距,即使这些值是0。 – adambrunner