我尝试为 Outlook 创建模板电子邮件,但遇到了问题。
他们用于创建电子邮件的表格具有 1 px 的加边距/填充,如图片中的 + 无法识别字体。
我想要什么:https ://imgur.com/kQIrH2T
我尝试使用填充:0,边距:-1,表格布局:固定和其他想法。
这是我的代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Single-Column Responsive Email Template</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<style>
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800);
table{
border-spacing: 0;
border: none;
}
td{
margin: 0px;
border: none;
}
tr{
margin: 0px;
border: none;
}
img{
display:block;
}
p{
font-family: 'Open Sans', sans-serif;
font-size: 14px;
color: #1f2327;
}
</style>
</head>
<body>
<table border="0" style="height: 790px; width: 610px; border-collapse: collapse; " cellpadding="0" cellspacing="0" >
<tr>
<td width="90" style="text-align: right; width: 90px; height: 781px; padding:0; ">
<img src="https://i.imgur.com/MLPTttG.png">
</td>
<td>
<table width="527" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="527" style=" width: 527px; height: 19px;">
<img src="https://i.imgur.com/wGaQ4Vf.png" style="width: 100%;">
</td>
</tr>
<tr>
<td style="height: 738px; margin: 20px;">
a
</td>
</tr>
<tr>
<td style="width: 527px; height: 24px; background-color: #007034;">
<img src="https://i.imgur.com/vrb1QrE.png">
</td>
</tr>
</table>
</td>
<td style="width: 37px; height: 781px;">
<img src="https://i.imgur.com/nVuB7Wk.png">
</td>
</tr>
</table>
</body>
</html>