[英]Automatically resizing a VML background image in Outlook
我知道“ 防弹电子邮件背景”黑客,但是因为这会在背景中放置一个设置大小的VML矩形,然后在其中放置内容,所以它不会调整大小。
换句话说,表格单元格中的文本被裁剪为VML矩形的高度。
我已经尝试了所有可以想到的方法,但是似乎没有任何方法允许VML矩形的内容调整其大小。
还有其他方法可以在Outlook中获取背景图像吗?
除了VML,在Outlook中获取背景图像的唯一其他方法是在body标签中。
这是技巧(在所有主要客户中都适用):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body style="margin: 0px; padding: 0px; background-image: url('http://lorempixel.com/100/100/'); background-color: #252525; background-repeat: repeat-y no-repeat; background-position: top left;" bgcolor="#252525">
<!-- BODY FAKE PANEL -->
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="http://lorempixel.com/100/100/">
<tr>
<td valign="top">
<!-- CENTER FLOAT -->
<table width="600" height="800" border="0" valign="top" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td align="center">
Center panel
</td>
</tr>
</table>
<!-- /CENTER FLOAT -->
</td>
</tr>
</table>
<!-- /BODY FAKE PANEL -->
</body>
</html>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.