[英]HTML email with Outlook 2013 - border-left and td alignment issue
我正在研究html電子郵件簽名,並嘗試將其與Outlook 2007、2010和2013配合使用。在其他所有電子郵件客戶端中,它的外觀都與我想要的一樣。 這就是我要去的地方:
這是我在Outlook 2007、2010和2013中看到的內容:
第二個單元格對齊方式已關閉,表格的左邊框不可見。 任何人都可以根據下面粘貼的代碼找出我在做什么錯嗎? 非常感謝!
<meta name="format-detection" content="telephone=no">
<table style="border-collapse:collapse;margin-left:-8px;border-left: 7px solid #9d2235;" width="100%" cellpadding="15px">
<tbody>
<tr>
<td width="100px" bgcolor="#e5e5e5" style="border: 3px solid #e5e5e5;vertical-align: top;padding-left:15px;padding-right:15px;">
<a href="https://canada.ntm.org"><img src="https://canada.ntm.org/files/email-sig-files/NTMC%20Logo%20red.png" alt="NTMC Canada" width="100" height="46" /></a>
</td>
<td bgcolor="#e5e5e5" style="border: 3px solid #e5e5e5;text-align:left;color:#333;font-family:'Helvetica Neue','HelveticaNeue',Helvetica,Arial,'Lucida Grande',sans-serif;font-weight: 300;vertical-align: top;font-size:14px;padding-bottom:7px;padding-top:7px">
<strong>Norm Copeland</strong><br>
<a style="text-decoration:none;color:#333" href="mailto:norm_copeland@ntm.org">norm_copeland@ntm.org</a><br>
844-855-6862 x213<br>
<a style="text-decoration:none;color:#9d2235" href="https://canada.ntm.org">canada.ntm.org</a>
</td>
</tr>
</tbody>
</table>
1. Outlook不支持保證金 。
2. 使用600px作為表格的寬度 。
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
*
{
padding:0px;
margin:0px;
font-family:'Helvetica Neue','HelveticaNeue',Helvetica,Arial,'Lucida Grande',sans-serif;
}
a
{
text-decoration:none;
}
</style>
<title>Outlook</title>
</head>
<body>
<table style="margin: 0 auto;" width="600px" height="85px" cellpadding="0px" cellspacing="0px" border="0" align="center">
<tbody>
<tr>
<td width="7px" bgcolor="#9d2235"></td>
<td width="160px" bgcolor="#e5e5e5" style="text-align:center;">
<a href="https://canada.ntm.org"><img src="https://canada.ntm.org/files/email-sig-files/NTMC%20Logo%20red.png" alt="NTMC Canada" width="100" height="46" /></a>
</td>
<td width="433px" bgcolor="#e5e5e5" style="text-align:left;color:#333;font-weight: 300;font-size:14px;">
<strong>Norm Copeland</strong><br>
<a style="text-decoration:none;color:#333" href="mailto:norm_copeland@ntm.org">norm_copeland@ntm.org</a><br>
844-855-6862 x213<br>
<a style="text-decoration:none;color:#9d2235" href="https://canada.ntm.org">canada.ntm.org</a>
</td>
</tr>
</tbody>
</table>
</body>
</html>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.