【发布时间】:2015-01-07 20:39:48
【问题描述】:
我在创建一些 HTML 电子邮件以在 Outlook 桌面 2013 中正确显示时遇到问题,到目前为止,我已经设法解决了我无法理解的边框问题。
基本上在 Outlook Web 应用程序中,我的表格如下所示: http://imgur.com/EqbluKF
但在 Outlook 2013 上,它看起来像这样: http://imgur.com/s1ZQRqW
这是我在 Outlook 吃掉它并弄得一团糟之前的表格代码:
<table cellspacing="0" cellpadding="1" border="0" align="center" width="100%" style="margin:auto;">
<thead>
<tr height="40" style="background-color: #CFE1D3; ">
<th align="center" width="17%" style="line-height: 1.6em; border-style: solid; border-color: #777; border-width: 1px 0 0 1px;"><strong><?php echo $this->__('Item') ?></strong></th>
<th align="center" width="17%" style="line-height: 1.6em; border-style: solid; border-color: #777; border-width: 1px 0 0 1px;"><strong><?php echo $this->__('Product Code') ?></strong></th>
<th align="center" width="30%" style="line-height: 1.6em; border-style: solid; border-color: #777; border-width: 1px 0 0 1px;"><strong><?php echo $this->__('Product Description') ?></strong></th>
<th align="center" width="10%" style="line-height: 1.6em; border-style: solid; border-color: #777; border-width: 1px 1px 0 1px;"><strong><?php echo $this->__('Quantity') ?></strong></th>
</tr>
</thead>
<tbody>
<tr>
<td align="center" style="line-height: 1.6em; border-style: solid; border-color: #777; border-width: 1px; border-right-width: 0; border-top-width: 0;"><img src="images/product" alt="test" width="100%" height="auto" align="left" /></td>
<td align="center" style="line-height: 1.6em; border-style: solid; border-color: #777; border-width: 1px; border-right-width: 0; border-top-width: 0;">test</td>
<td align="center" style="line-height: 1.6em; border-style: solid; border-color: #777; border-width: 1px; border-right-width: 0; border-top-width: 0;">This is a test</td>
<td align="center" style="line-height: 1.6em; border-style: solid; border-color: #777; border-width: 1px; border-top-width: 0;">1</td>
</tr>
</tbody>
【问题讨论】:
-
campaignmonitor.com/css 这是一个方便的页面,用于检查某些邮件程序是否可以使用样式。由于 Outlook 中不允许使用边框间距。
-
@Deer-Outdoor.nl 是的,它是一个方便的工具,到目前为止我一直在使用它。但我没有在我的代码中使用边框间距?
-
哎呀,你是对的,这是单元格间距 xD 抱歉!
标签: html css email outlook outlook-2013