身体上的HTML电子邮件背景在Outlook 2013中不起作用 [英] HTML email background on body not working in Outlook 2013

查看:608
本文介绍了身体上的HTML电子邮件背景在Outlook 2013中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下html,如果我在浏览器上打开它,它可以正常工作..但是当我将它作为邮件发送给我的Outlook 2013时,我没有看到背景..

 <!DOCTYPE html> 
< html>
< head>
< title>无标题文档< / title>
< / head>

< body style ='background-image:url(http://postimg.org/image/t6abf7srn/); background-repeat:no-repeat'>

< / body>
< / html>

我试过了这个链接给出的选项1和2: http://blog.mailermailer.com/email-design/background-images- in-html-email-the-naked-truth



已经在下面的链接中尝试了解决方案:



1) http:// blog.mailermailer.com/email-design/bulletproof-email-background-images-fact-or-fiction

<2> http://backgrounds.cm/



但没有运气。



只要添加我的VML添加,这似乎也没有太多工作:

  <!DOCTYPE html> 
< html xmlns:v =urn:schemas-microsoft-com:vml>
< head>
< title>无标题文档< / title>
< / head>

< body style ='background-image:url(http://postimg.org/image/t6abf7srn/); background-repeat:no-repeat'>
<! - [if gte mso 9]>
< v:background fill =t>
< v:fill type =tilesrc =http://www.example.com/background_image.jpg/>
< / v:背景>
<![endif] - >

< / body>
< / html>


解决方案

您确定已将vml xmlns添加到您的html标记?



< html xmlns:v =urn:schemas-microsoft-com:vml>



我没有遇到提供的代码片段CM(位于主体顶部)

<! - [if gte mso 9]>
< v:background fill =t>
< v:fill type =tilesrc =http://www.example.com/background_image.jpg/>
< / v:背景>
<![endif] - >



编辑!!



原来,你甚至不需要VML的Outlook体背景。
< body style =margin:0px; padding:0px; bgcolor =#0088ccbackground =http://imagez.biz/bkg.png>


I have the following html, if i open it up on browser it works fine..but when i send it as a mail to my outlook 2013, i dont see the background..

<!DOCTYPE html>
<html>
<head>
<title>Untitled Document</title>
</head>

<body style='background-image: url("http://postimg.org/image/t6abf7srn/");background-repeat:no-repeat'>

</body>
</html>

I have tried options 1 and 2 given at this link : http://blog.mailermailer.com/email-design/background-images-in-html-email-the-naked-truth

Have tried the solutions at below link as well:

1) http://blog.mailermailer.com/email-design/bulletproof-email-background-images-fact-or-fiction

2) http://backgrounds.cm/

but no luck.

Just adding my VML addition as well, which doesnt seem to be working too:

<!DOCTYPE html>
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<title>Untitled Document</title>
</head>

<body style='background-image: url("http://postimg.org/image/t6abf7srn/");background-repeat:no-repeat'>
<!--[if gte mso 9]>
<v:background fill="t">
   <v:fill type="tile" src="http://www.example.com/background_image.jpg" />
</v:background>
<![endif]-->

</body>
</html>

解决方案

are you sure you've added the vml xmlns into your html tag?

<html xmlns:v="urn:schemas-microsoft-com:vml">

I haven't had trouble with the snippet CM provided (placed at the top of the body)

<!--[if gte mso 9]> <v:background fill="t"> <v:fill type="tile" src="http://www.example.com/background_image.jpg" /> </v:background> <![endif]-->

EDIT!!

Turns out you don't even need VML for outlook body backgrounds. <body style="margin:0px; padding:0px;" bgcolor="#0088cc" background="http://imagez.biz/bkg.png">

这篇关于身体上的HTML电子邮件背景在Outlook 2013中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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