2

我尝试在我的<p>但 outlook.com/hotmail.com 上将以下内容添加为内联样式,并将其剥离并在 before 和 after 添加 1em 边距<p>

margin-before:0!important;
 -webkit-margin-before:0!important;
 margin-after:0!important;
 -webkit-margin-after:0!important

4

3 回答 3

3

试试这个:

<p style="Margin-top:0;Margin-bottom:0;"></p>

出于某种未知原因,除非您使用大写字母 M,否则 Outlook.com 会去除边距。

于 2016-06-27T12:28:02.800 回答
1

我想说最简单的解决方案是不使用p标签。只需将您的副本放在 atd中并照常应用所有内联样式即可。使您可以更好地控制内容,并避免您与来自客户端/浏览器的默认添加样式作斗争

于 2016-06-27T11:00:52.580 回答
0

margin: 0;只需通过添加来覆盖它们<p> 您可以添加!importantmargin.

于 2016-06-25T03:48:19.210 回答