【发布时间】:2015-08-07 15:47:06
【问题描述】:
我创建了一个流畅的电子邮件模板,它在任何地方都能很好地工作,期待在 Outlook 中。基本结构在我的流体表周围包裹了一个仅限外观的表。
// table to keep everything at 580 for outlook
<!--[if (gte mso 9)|(IE)]>
<table width="580" align="center" cellpadding="20" cellspacing="0" border="0" style="border-collapse: collapse; mso-table-lspace:0; mso-table-rspace:0;">
<tr>
<td>
<![endif]-->
// fluid table up to 960px
<table class="content" align="center" cellpadding="20" cellspacing="0" border="0" style="width:100%!important; max-width:960px;border-collapse: collapse; mso-table-lspace:0; mso-table-rspace:0;">
// image is 960px wide
<tr><td><img src="myimage.jpb"></td></tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
我遇到的问题是 Outlook 没有将 960 像素的图像调整为 580 像素,它只是扩展了表格,所以我得到了水平滚动条。有什么方法可以强制将图片大小调整为 580px,但仅适用于 Outlook?
【问题讨论】:
标签: responsive-design outlook html-email