發送大量電子郵件,幾乎所有東西都在表格內。使用Campaign Monitor發送電子郵件,有什麼辦法擺脫垂直對齊表中文本上方的5px空格?
CSS影響表:
.title {
vertical-align: top;
}
HTML:
<table width="580" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="title" align="left" width="440" valign="top">
<h2><singleline label="Title">Enter your title</singleline></h2>
<p><multiline label="Description">Description</multiline></p>
</td>
<td align="left" valign="top" width="20"><img src="/images/00.gif" height="1" width="20" border="0"></td>
<td align="left" valign="top" width="120"><img src="/images/001.jpg" editable="true" label="Image" width="120" border="0"></td>
</tr>
<tr>
<td colspan="3" align="left" valign="top" width="580"><img src="/images/00.gif" height="20" width="1" border="0"></td>
</tr>
</table>
我需要在標籤內的文字與表格的頂部齊平。目前/ images/001/jpg是齊平的,但是文字在表格邊緣以下5個像素。
我在CSS中使用vertical-align:top,嘗試了border-spacing:none,border-collapse:collapse和border:none。他們都沒有解決這個問題。
使用margin-top:-5px;在標籤上解決了標準瀏覽器測試中的問題,但不被某些電子郵件客戶端支持。
什麼瀏覽器或電子郵件閱讀器? – Amy
IE 7,8,9 Firefox,Safari,Chrome gmail,outlook 07/10 – MWhitmore