Hotmail在电子邮件中添加p标签,创建不必要的间距 [英] Hotmail adding p tags within email, creating unwanted spacing

查看:203
本文介绍了Hotmail在电子邮件中添加p标签,创建不必要的间距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个电子邮件签名,使用表格进行布局,因为我有阅读这是最好的方法。对于通过Outlook 2013发送的内部电子邮件,一切看起来都非常棒,但是在Hotmail中查看电子邮件时很烦,每个< tr> 注入了一堆间距。查看来源显示,< tr> 中的内容正在以< p> 指定了.ecxMsoNormal类。

I've created an email signature, using tables for layout as I've read this is the best approach. Everything looks great for internal emails sent via Outlook 2013 but annoyingly when viewing an email in Hotmail, a bunch of spacing has been injected per <tr>. Viewing the source reveals that the content within the <tr> is being wrapped in a <p> with a .ecxMsoNormal class specified.

p 标签正在设置为1.35em的底边距,因此是间距问题。我试图覆盖该类,但它看起来像< style> 标签正在剥离,Outlook 2013发送电子邮件或完全被忽略服务器端。

The p tag is being set a bottom-margin of 1.35em, hence the spacing issue. I've tried to override the class but it looks like <style> tags are being stripped before Outlook 2013 sends the email or it's completely getting ignored server side.

有没有办法去除这个间距?如果没有,什么是合适的工作?没有什么我会尝试(表格布局,div布局,包装的内容在font / div标签,覆盖的样式)似乎得到这些 p 标签。

Is there a way to remove this spacing? If not, what would be a suitable work around? Nothing I try (table layout, div layout, wrapping inner content in font/div tags, overriding styles) seems to get rids of these p tags.

编辑:

请参阅图片有更多细节。

推荐答案

我有一个类似的问题,我们别无选择,只能使用p标签,想要删除1.35em边缘底部。

I had a similar issue where we had no option but to use p tags, and wanted to remove the 1.35em margin-bottom.

我在有问题的p个标签上使用了 display:inline; 使边际被忽略。不适合所有情况,但对我们来说是完美的。

I used display:inline; on the p tags in question so that the margin was ignored. Not appropriate in all situations, but was perfect for us.

这篇关于Hotmail在电子邮件中添加p标签,创建不必要的间距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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