在Outlook中自动调整VML背景图像的大小 [英] Automatically resizing a VML background image in Outlook

查看:102
本文介绍了在Outlook中自动调整VML背景图像的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道防弹电子邮件背景 hack,但是由于这会在背景中放置一个大小固定的VML矩形,然后将内容放入其中,不会调整大小.

I know about the Bulletproof Email Backgrounds hack, but as this places a set-sized VML rectangle in the background, and then places the content within it, it doesn't resize.

或者换句话说,表格单元格中的文本被裁剪为VML矩形的高度.

Or to put it another way, the text in the table cell is cropped to the height of VML rectangle.

我已经尝试了所有可以想到的方法,但是似乎没有任何方法允许VML矩形的内容调整其大小.

I've tried everything I can think of, but there doesn't appear to be anyway to allow the content of the VML rectangle to resize it.

还有其他方法可以在Outlook中获取背景图片吗?

Is there ANY other way of getting background images in Outlook?

推荐答案

除了VML,在Outlook中获取背景图片的唯一其他方法是在body标签中.

Besides VML, the only other way to get a background image in Outlook is in the body tag.

这是技巧(在所有主要客户中都可以使用):

Here is the technique (works in all major clients):

<!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> 

这篇关于在Outlook中自动调整VML背景图像的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆