Outlook 2013客户端向css添加额外内容?

时间:2015-12-30 13:16:26

标签: html css outlook electronic-direct-mail

outlook 2013或者任何版本的桌面客户端都有css渲染问题吗? edm中的表td背景图像存在此问题。如果我通过网络浏览器发送它,我的edm工作得很好但是如果我使用Outlook客户端,td背景有轻微的css更改,我检查它在我的td背景之前添加额外<span><p>的代码。 / p>

这是工作edm的形象 enter image description here 这是代码

<td background="http://****Whatsnew.png" bgcolor="#E7E7E9" width="250" height="36" valign="top" style="background-repeat: no-repeat; display:block;">
            <!--[if gte mso 9]>
            <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:260px;height:36px;">
              <v:fill type="tile" src="http://*****Whatsnew.png" color="#E7E7E9" />
              <v:textbox inset="0,0,0,0">
            <![endif]-->
            <table style="color: white; font-size: 15px; display:block; Margin-left:12px;" cellpadding="0" cellspacing="0" border-collapse="collapse">
                <tr>
                    <td width="0" height="4" style="line-height:1px;font-size:1px;">
                        <font style="font-size:1px;display:none !important;display:none;">&nbsp;</font>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <!-- 1ST COLUMN RIBBON TEXT -->
                    <td>What's New</td>
                </tr>
            </table>
            <!--[if gte mso 9]>
              </v:textbox>
            </v:rect>
            <![endif]-->
        </td>

并通过outlook发送客户端问题与css enter image description here

代码检查,添加css添加了p和span类 enter image description here

1 个答案:

答案 0 :(得分:0)

是的,Outlook中的HTML和CSS存在一些问题,它使用Word来呈现HTML内容。请参阅:“Word 2007 HTML and CSS Rendering Capabilities in Outlook 2007