css 背景 Outlook 2007
我创建了一个程序,发送带有背景图像的新闻通讯。 它在 Office 2000-2003、thunderbird 上工作正常,但背景图像在 Outlook 2007 上不显示。我读到微软更改了渲染引擎并且不支持背景 css 属性(这是可能的,但仅适用于正文)。
是否可以创建一封像这样呈现的电子邮件: http://www.freeimagehosting .net/image.php?a7905f7d16.png 在 Outlook 2007 上?
解决办法是什么 ?
感谢您的帮助。
I creating a program which send newsletter with a background image. It works fine on Office 2000-2003, thunderbird, but the background image does not show on Outlook 2007. I read that Microsoft changed the rendering engine and did not support the background css property (it is possible but only applied to the Body).
Is it achievable to create an email which will render like that : http://www.freeimagehosting.net/image.php?a7905f7d16.png
on Outlook 2007 ?
What is the solution ?
Thank you for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
应该不会太难,因为整个布局只需要一张背景图像。 这里是一篇博客文章,告诉您如何让你的背景图像适合身体。
然后只需将图像和文本放入表格中,并使用正确的宽度对其进行样式设置,然后 BAM,就可以开始了(:
Shouldn't be too hard, as you're only needing one background image for the whole layout. Here is a blog post telling you how to get your background images working for the body.
Then just put the images and text inside a table and style it up with the correct width, and BAM, you're good to go (:
Outlook 2007 不仅阻止背景图像在除正文元素之外的任何内容中显示,显然您还必须小心如何设置所述背景图像的样式。 也许这是你的问题?
Campaign Monitor 有一篇关于它的简短帖子。
Not only has Outlook 2007 stopped the background image from showing in anything but the body element, apparently you have to be careful about how you set the styling of said background image as well. Perhaps this is your problem?
Campaign Monitor has a short post about it.
也许使用桌子并在桌子上放置背景会起作用。 无论哪种方式,如果您仅使用 css 对其进行样式设置,您就会遇到麻烦,并且很可能必须后退几步并再次进行大量样式设置。
仅供参考: www.fixoutlook.org
perhaps using a table and put a background on the table would work. either way, if you have styled it using css only, your in trouble and will most likely have to take a few steps back and do alot of the styling again.
fyi: www.fixoutlook.org
Outlook 默认情况下使用 Trident、IE 引擎来处理传入邮件,并使用 Word HTML 渲染引擎来处理传出邮件... 直到 Office 2007(有些人讨厌它)。
现在,它使用 Word 2007 的渲染,即 比较缺乏。 在 Microsoft 页面上,您可以看到
body 元素不支持
style
属性。 因此,您无法为body
提供背景。可以将所有内容都包含在样式化的
div
中,而不是样式化body
吗?Outlook by default uses Trident, IE's engine for incoming mail, and Word HTML rendering engine for outgoing mail... Until Office 2007 (and some people hate it).
Now, it uses Word 2007's rendering, wich is rather lacking. On microsoft's page you can see that de
body
element doesn't support thestyle
attribute. Because of this, you can't give a background to thebody
.May be enclose everything in a styled
div
, instead of styling thebody
?