html电子邮件中的背景图片css - Gmail不支持 [英] Background-image css inside an html email - Gmail does not support

查看:140
本文介绍了html电子邮件中的背景图片css - Gmail不支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想向我的用户发送如下的background-image css的html body电子邮件:

i want to send html body email like below with background-image css to my users :

<div style='width:500px;height:1000px;background-color:black;background-image:url(http://upl0ad.org/images/mylogo.gif) repeat scroll left top;'>
    My Content
</div>

但由于下面的链接表示Google不支持背景图片css!

http://www.campaignmonitor.com/css/

but as the link below says google does not support background-image css!
http://www.campaignmonitor.com/css/

我该怎么办?

推荐答案

您是否尝试设置背景属性的表?

Have you tried setting the background attribute of a table?

这是以下Mailchimp博客文章中推荐的方法: HTML电子邮件中的背景图片和CSS

This is the recommended method detailed in the following Mailchimp blog post: Background Images and CSS in HTML Email.

示例(在Gmail中测试)

Example (Tested in Gmail)

    <table background="https://www.google.com/intl/en_com/images/srpr/logo3w.png" width="275" height="95">
        <tr>
            <td>
                Email Content...
            </td>
        </tr>
    </table>

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

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