【发布时间】:2015-03-14 00:09:14
【问题描述】:
我在 HTML 电子邮件模板中有一个图像,其中高度被截断。我正在使用 Zurb Ink 电子邮件框架。设置是两个应该堆叠在一起的图像。据我所知,图像在 19 像素高度处被截断,而实际高度为 47 像素;
我在 Acid 上使用电子邮件来预览电子邮件。在使用 premailer 发送电子邮件之前,内联 CSS。
第二张图片显示正常。
这是相关代码和截图。
HTML
<table class="row banner">
<tr>
<td class="wrapper last">
<table class="four columns">
<tr>
<td>
<img class="hide-for-small" src="url-to-image.jpg" width="179" height="47" style="width:179px; height:47px; line-height:47px;" />
<br/>
<img src="url-to-image.jpg" width="179" height="63" style="width:179px; height:63px; line-height:63px;" />
</td>
<td class="expander"></td>
</tr>
</table>
</td>
</tr>
</table>
CSS
img {
outline:none;
text-decoration:none;
-ms-interpolation-mode: bicubic;
width: auto;
max-width: 100%;
float: left;
clear: both;
display: block;
}
内联 CSS - 在所有 CSS 编译和内联之后。
td {
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
border-collapse: collapse !important;
vertical-align: top;
text-align: left;
color: #222222;
font-family: Helvetica, Arial, sans-serif;
font-weight: normal;
line-height: 19px;
font-size: 13px;
margin: 0;
padding: 0px 0px 10px;
}
img {
width: 179px;
height: 47px;
line-height: 47px;
outline: none;
text-decoration: none;
-ms-interpolation-mode: bicubic;
max-width: 100%;
float: left;
clear: both;
display: block;
截图
展望 2007/2010
普通电子邮件客户端
我尝试添加 height、style="height" 和 line-height 属性来强制高度,但到目前为止没有运气。
【问题讨论】:
-
你能提供截图吗?我没有看到他们...
-
@CalvT - 我用屏幕截图和附加代码更新了问题。
标签: outlook html-email zurb-ink