如何删除 Outlook中的标签上方的空间?

问题描述 投票:0回答:1

这是我的代码

<span>Services</span>
<ul style="Margin-top: 0px !important; Padding-top: 0px;">
  <li> Services 1 </li>
  <li> Services 2</li>
</ul>

我正在用来删除OUTLOOK中的保证金顶部的CSS

   <!--[if gte mso 9]>
    <style>
        ul {
        margin-top: 0 !important;
      }
    </style>
    <![endif]-->

即使添加所有这些,我也无法删除UL标签上方的空间。请帮助。

css outlook html-email
1个回答
1
投票

在Outlook桌面版本上,列表项<li>上有空白

但是要获得跨电子邮件客户端的支持,您还需要在margin-top:0上同时显示<ul>,如下所示:

<span>Services</span>
<ul style="margin-top: 0;">
  <li style="margin-top: 0; "> Services 1 </li>
  <li> Services 2</li>
</ul>

不需要额外的CSS。

© www.soinside.com 2019 - 2024. All rights reserved.