未显示背景图片样式的html电子邮件 [英] html email with background-image style not shown

查看:174
本文介绍了未显示背景图片样式的html电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个必须从外部网站显示图像的电子邮件模板。我已经放置了一些< img> 标签来渲染图像,并且有一些< td> 带背景的标签-image属性设置在元素的inline css中。

I am creating an email template which has to display images from external website. I had placed some <img> tags for rendering the images and there are some <td> tags with background-image property set in inline css of the elements.

现在,在Outlook中接收到电子邮件时,图像不会显示(预期图像不会嵌入式)。并且我点击下载图像正确地查看图像。仅显示< IMG> 标签中的图像,< TD> 的背景图像不会

Now, when an email is received in outlook, the images are not displayed (this is expected as the images are not embedded). And I click the download images to see the images properly. The images in <IMG> tag are only shown and the background-image for the <TD> is not rendered.

解决这个问题的任何意见?

Any views on solving this problem?

谢谢!

推荐答案

最后我找到答案。

Outlook 2007不使用Internet Explorer的渲染引擎来加载HTML内容。而是使用Word 2007 HTML和CSS功能。

Outlook 2007 does not use the Internet Explorer's rendering engine for loading HTML content. Instead it uses Word 2007 HTML and CSS capabilities.

因为不支持这样的CSS属性,如background-image。因此,不可能使用标准CSS标签为outlook中的HTML元素设置背景图像。

Because of this CSS attributes such as background-image is not supported. And hence it's not possible to set a background image for HTML elements in outlook using standard CSS tags.

更多信息可在 http://msdn.microsoft.com/en-us/library/aa338201(v = office。 12).aspx

这篇关于未显示背景图片样式的html电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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