小编Cas*_*vin的帖子

如何修复Outlook 2013中的图像显示?

在Outlook 2013的试用版中,HTML电子邮件中的图像显示得非常奇怪.据我所知,通过测试,看起来短于20像素的图像增加了填充,使它们高20像素.有什么我可以做的改变吗?这些电子邮件在Outlook 2010以及我测试过的其他任何地方都很好看.

我已经尝试改变它们所在的表格单元格的高度(通过height="13"内联css)以及它们所在的表格和表格行,但都无济于事.以下代码是触发此问题的简单示例,因为您将能够在图像上方看到单元格的红色背景:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="195" style="background-color:#ff0000;"><img src="image url here" alt="" width="195" height="13" style="display: block" /></td>
  </tr>
</table>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙吗?

outlook html-email

14
推荐指数
1
解决办法
2万
查看次数

标签 统计

html-email ×1

outlook ×1