在Outlook 2007和2010中的丰富的HTML电子邮件...如何删除顶部边距? [英] Rich HTML emails in Outlook 2007 and 2010... how do you remove the top margin?

查看:320
本文介绍了在Outlook 2007和2010中的丰富的HTML电子邮件...如何删除顶部边距?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个丰富的HTML电子邮件。我想知道如何,在Outlook 2010和2007,你得到的布局中的表与浏览器的边缘齐平?

I have a rich HTML email. I was wondering how, in Outlook 2010 and 2007, you get the table in the layout to sit flush with the edge of the browser?

看看这pic:

>

粉红色是body标记的背景颜色,灰色是表的bg。他们都有0一切(边缘,paddting ect)。但还是有一些空间。

The pink is the background color of the body tag and the grey is the bg of the table. They both have 0 everything (margin, paddting ect). But there is still some space. The pink should not be visible.

有没有人知道如何摆脱身体上的这个空间?

Does anyone know how to get rid of this space on the body?

这里还有一些用于开始电子邮件的CSS:

Also here’s some CSS for the start of the email:

<html>
<head>

    <style type="text/css">
        html, body{ width:100%; }
        body{ background-color:#ff00ff; }
    </style>

   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <title>Test</title>
</head>
  <body topmargin="0" style="margin:0; padding:0; width:100%; background-color:#ff00ff;" >
            <table topmargin="0" align="center" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;border-spacing: 0;border: 0; margin:0; padding:0; background-color:#eee;" >

干杯!

推荐答案

Outlook 2007/2010向所有html电子邮件中添加了15px顶部/底部和10px左/右主体填充。你不能摆脱它。

Outlook 2007/2010 adds 15px top/bottom and 10px left/right body padding to all html emails. You can't get rid of it.

这是伪造完整背景的诀窍: http://www.campaignmonitor.com/forums/viewtopic.php?pid=17048

这篇关于在Outlook 2007和2010中的丰富的HTML电子邮件...如何删除顶部边距?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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