没有显示背景图象的Html邮件 [英] Html Mail Not Showing Background Image

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

问题描述

我想从我的应用程序发送邮件。我设计包含背景图片的html邮件,但在邮件中图像不显示但显示其他内容。我如何解决它请帮助我任何一个。

感谢和问候

by

Meganathan M

I want to send mail from my application.I design html mail that contain Background images but in the mail the image not display but other content displayed.How can i solved it please help me any one.
Thanks and regards
by
Meganathan M

推荐答案

.mailimage1 { background:url(Samplemailimages / green.jpg)no-repeat left left;}

这就是重点: Samplemailimages / green。 JPG ?在服务器上的某个地方。电子邮件客户端 - 它在哪里运行?在客户端计算机上。电子邮件客户端在哪里期待图像? 本地磁盘上的某个位置。因此它无法显示它。

提供一个正确的完整URL,例如

http://www.yourserver.com/Samplemailimages/green。 jpg

而不是上面的相对网址。
.mailimage1{background:url("Samplemailimages/green.jpg") no-repeat top left;}
That's the point: where is Samplemailimages/green.jpg? Somewhere on your server. And the email client - where does it run? On the client computer. Where does the email client expect the image? Somewhere on the local disk. Hence it cannot show it.
Give a proper full URL, something like
http://www.yourserver.com/Samplemailimages/green.jpg
instead of the relative URL above.


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

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