gmail html电子邮件背景颜色 [英] gmail html email background color

查看:226
本文介绍了gmail html电子邮件背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我用这种方式将颜色作为HTML电子邮件的背景颜色,用于使身体背景灰色,但它不工作

 < body leftmargin =0topmargin =0marginwidth =0marginheight =0bgcolor =#e2e3e7style = font-family:Arial,Helvetica,sans-serif;> 


解决方案

将您的电子邮件包含在一个单元格表中,宽度和高度,并设置该单元格的背景颜色。

 < table> 
< tr>
< td width ='100%'height ='100%'bgcolor ='#e2e3e7'>

<! - 内容表在这里 - >
< table width ='600'align ='center'bgcolor ='#ffffff'>

< / table>

< / td>
< / tr>
< / table>


IS there any way to put color as background in HTML email for gmail?

I used this for making body background grey but it doesnt work

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#e2e3e7" style="font-family:Arial, Helvetica, sans-serif;">

解决方案

Wrap your email in a single celled table with 100% width and height and set the background colour for that cell.

<table>
    <tr>
        <td width='100%' height='100%' bgcolor='#e2e3e7'>

            <!-- "Content" table goes here -->
            <table width='600' align='center' bgcolor='#ffffff'>

            </table>

        </td>
    </tr>
</table>

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

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