我尝试在我的<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
我尝试在我的<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
试试这个:
<p style="Margin-top:0;Margin-bottom:0;"></p>
出于某种未知原因,除非您使用大写字母 M,否则 Outlook.com 会去除边距。
我想说最简单的解决方案是不使用p
标签。只需将您的副本放在 atd
中并照常应用所有内联样式即可。使您可以更好地控制内容,并避免您与来自客户端/浏览器的默认添加样式作斗争
margin: 0;
只需通过添加来覆盖它们<p>
您可以添加!important
到margin
.