【发布时间】:2010-10-26 11:18:01
【问题描述】:
我尝试使时事通讯与 Outlook 2007 兼容,但 Outlook 呈现引擎不太合乎逻辑。下面的代码不会像在 Firefox 和其他渲染引擎中那样将边框设置为 1 像素的宽度,但它在其中一些 td 元素之间添加了一些额外的空间。这个问题有解决办法吗?
<table>
<tr>
<td width="0" style="border-left: 1px solid #cdcdcd; border-bottom: 0px none; border-top: 0px none; margin: 0;" ></td>
<td width="0" style="border-left: 1px solid #c1c1c1; border-bottom: 0px none; border-top: 0px none; margin: 0;" ></td>
<td width="0" style="border-left: 1px solid #adadad; border-bottom: 0px none; border-top: 0px none; margin: 0;" ></td>
<td width="0" style="border-left: 1px solid #949494; border-bottom: 0px none; border-top: 0px none; margin: 0;" ></td>
<td width="100%" bgcolor="white">
content here
</td>
<td width="0" style="border-right: 1px solid #949494; border-bottom: 0px none; border-top: 0px none; margin: 0;" ></td>
<td width="0" style="border-right: 1px solid #adadad; border-bottom: 0px none; border-top: 0px none; margin: 0;" ></td>
<td width="0" style="border-right: 1px solid #c1c1c1; border-bottom: 0px none; border-top: 0px none; margin: 0;" ></td>
<td width="0" style="border-right: 1px solid #cdcdcd; border-bottom: 0px none; border-top: 0px none; margin: 0;" ></td>
</tr>
</table>
【问题讨论】:
-
另请参阅此答案中的链接:stackoverflow.com/questions/868073/…
-
这是它在 Outlook 2007 中的外观 >> i44.tinypic.com/8zmxhj.jpg
标签: html outlook html-table rendering outlook-2007