如何摆脱电子邮件的MsoNormal类 [英] how to get rid of class MsoNormal from emailers

查看:925
本文介绍了如何摆脱电子邮件的MsoNormal类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,我试图创建一个电子邮件卡......我设计了一个电子邮件程序,然后将该设计切割成HTML并将使用Office 2007的电子邮件发送到我的Gmail ...当我在我的Gmail中检查电子邮件时,我得到了这个



调试我发现在每个< tr> 之后都有< p class =MsoNormal> 。为了重置这一点,我也申请了下面的风格,但它不起作用...请帮助我们

CSS

  body {
color:#fff;
font-family:Arial,Helvetica,sans-serif;
保证金:0;
padding:0;
}
html {width:100%;}
body {width:100%!important;}
.ReadMsgBody,.ExternalClass {width:100%; display:block!important;}
table td {border-collapse:collapse; MSO的表lspace:0pt; mso-table-rspace:0pt;}
#backgroundTable {margin:0;填充:0; width:100%!important;}
p.MsoNormal {margin:0px}
img {display:block;}


解决方案

您可以尝试的一种技巧(在大多数情况下工作)是将此样式添加到图像所在的每个td中

 < td style =line-height:25%> 

如果这不起作用,请尝试将它应用于< tr> ; (我真的不知道它是如何工作的,只是它在某些情况下起作用)


Hi friends I am getting stuck trying to create an emailer ... I designed an emailer then cut that design into HTML and send that emailer using office 2007 to my gmail... when i checked emailer in my gmail i got this

There are spaces showing after debugging I found there are <p class="MsoNormal"> after every <tr>. To reset this I also applied following style but it doesn't work... please help me guys

CSS

body {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}
html {width: 100%;} 
body {width:100% !important;}
.ReadMsgBody, .ExternalClass {width:100%; display:block !important;}
table td {border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;} 
#backgroundTable {margin:0; padding:0; width:100% !important;} 
p.MsoNormal {margin: 0px}
img{display:block;}

解决方案

One trick you could try (work in most cases) is adding this style to every td where the image is

<td style="line-height: 25%">

If that doesn't work, try applying it on your <tr> (I honestly don't know how it works, just that it works in some cases)

这篇关于如何摆脱电子邮件的MsoNormal类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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