删除2个连续段落之间的空格

时间:2011-05-19 23:54:57

标签: html css email

我正在创建一个HTML电子邮件并在Entourage for Mac中进行测试。如何删除两个连续段落之间的空格。我尝试了以下操作,它适用于除Gmail和Entourage之外的每个邮件客户端:(

<p style="color:#333333; line-height: 20px; font-size: 16px; 
          font-family: Helvetica, Arial, sans-serif; font-weight:bold; 
          margin:0; padding:0; margin-top: 1cm; text-align: left;">
Exhibit Space Sales are Open to All</p>
<p style="color:#767676; line-height: 20px; font-size: 12px; 
          font-family: Helvetica, Arial, sans-serif;  text-align: left; 
          margin-bottom: 1cm; padding:0;">Lorem Ipsum is simply dummy 
text of the printing and typesetting industry. Lorem Ipsum has been the 
industry's standard dummy text ever since the 1500s, when an unknown printer 
took a galley of type and scrambled it to make a type specimen book. It has 
survived not only five centuries</p>

任何帮助都会得到应用

2 个答案:

答案 0 :(得分:0)

一种方法是将'margin-top:-0.5em'添加到第2段样式。

另一种方法是使用<DIV> instead of <P>

答案 1 :(得分:0)

他们是对的。与开发浏览器不同,电子邮件很难编写代码,因为您必须使用基本HTML和内联CSS来实现一切。你甚至不能使用填充,因为大多数版本的outlook都不会识别它。