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

查看:41
本文介绍了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?

看看这张照片:

粉色是body标签的背景色,灰色是table的bg.他们都有 0 一切(边距、填充等).但仍有一些空间.粉色应该不可见.

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天全站免登陆