在Outlook 2010和Gmail中进行HTML呈现 [英] HTML rendering in Outlook 2010 and Gmail

查看:125
本文介绍了在Outlook 2010和Gmail中进行HTML呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以编程方式向2个人发送完整的HTML邮件... 1是Gmail用户,另一个是使用Outlook的私人主机......邮件如下:

 < html xmlns =http://www.w3.org/1999/xhtml\> 
< body background =http:// sa-tips-spint1:103 / _layouts / images / corrente%20do%20bem / 2010 / cartao.jpgBGCOLOR =#000000style =background-position :center top;
margin-left:0px;
margin-top:0px;
margin-right:0px;
margin-bottom:0px;>
< div align =center>
< p>& nbsp;< / p>
< / div>
< p>& nbsp;< / p>
< p>& nbsp;< / p>
< p>& nbsp;< / p>
< p>& nbsp;< / p>
< tr>
< td width =504>& nbsp;< / td>
< td width =323valign =top>

< p style =color:'#FFFF66'; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:12px;>我的快乐消息< / p>
< / td>
< / tr>
< / table>
< / body>
< / html>

Gmail的问题在于图片不显示,背景不显示申请和没有种类的CSS应用...只留下我的快乐消息... ... $ / b
$ b

和Outlook的问题是,如果我使用CSS ... css不能正确渲染......除了background-image之外的所有css ...任何人都可以帮助我?

解决方案

可以从这个在SO中回答。 Gmail默认会阻止图片。作为发件人您无法对此做任何事情。

I am programmatically sending a full HTML message to 2 persons... 1 is a Gmail user and the other is a private host using Outlook... the message is the following:

<html xmlns="http://www.w3.org/1999/xhtml\">
<body background="http://sa-tips-spint1:103/_layouts/images/corrente%20do%20bem/2010/cartao.jpg" BGCOLOR="#000000" style="background-position: center top;
                 margin-left: 0px;
                 margin-top: 0px;
                 margin-right: 0px;
                 margin-bottom: 0px;">
    <div align="center">
        <p>&nbsp;</p>
    </div>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <table width="827" height="69" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td width="504">&nbsp;</td>
            <td width="323" valign="top">
                <p style="color:'#FFFF66';font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;">Ola,</p>
                <p style="color:'#FFFF66';font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;"> MY HAPPY MESSAGE </p>
            </td>
        </tr>
    </table>
</body>
</html>

the problem with the Gmail... is that the image does not show up and the background does not apply and no kind of CSS is applied... leaving only the MY HAPPY MESSAGE...

and the problem with the Outlook is that if i use css... css does not render properly... all css except the background-image... can anyone help me?

解决方案

As you can see from this Answer in SO. Gmail blocks images by default. You can't do anything about it as a sender.

这篇关于在Outlook 2010和Gmail中进行HTML呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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