邮件中带有CSS的图像 [英] images with css in mails
问题描述
hi
我在服务器上有一些图像,我正在以css的总访问路径从http://...开始访问那些图像,并且该图像路径从../Images/开始,就像我尝试过的那样,它不是邮件中的图像. br/>
我在usercontrol中使用,并且该usercontrol将是rendercontrol并发送邮件.在那个时候,它不是在Outlook和其他邮件站点(例如gmail等)中发送图像.我要如何编写代码....
问候
D.V. Mallikarjuna Guptha
hi
i have some images at server i am accessing those images with css total giving path start from http://... and that image path start from ../Images/ like i tryied it is not coming images with in the mail.
i am using in usercontrol and that usercontrol will be rendercontrol and sending mail. in that time it is not comming images in outlook and other mail sites like gmail etc... how to i want to write the code....
Regards
D.V.Mallikarjuna Guptha
推荐答案
嗨Mallikarjuna,
尝试使用内联或内部CSS.
在CSS中,图片的路径不应是相对的,而应是完整的路径,例如:
background-image:url(http://FULL/PATH/Of/image.jpg;)
问候,
Jitendra
Hi Mallikarjuna,
Try to use inline or Internal CSS.
and in CSS, the path of the image should not be relative, it should be complete path like:
background-image:url(http://FULL/PATH/Of/image.jpg;)
Regards,
Jitendra
这篇关于邮件中带有CSS的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!