gpt4 book ai didi

html - 删除两个连续段落之间的空格

转载 作者:行者123 更新时间:2023-11-28 14:40:19 25 4
gpt4 key购买 nike

我正在创建一个 html 电子邮件并在 Entourage for Mac 中对其进行测试。如何删除 2 个连续段落之间的空白。我尝试了以下方法,它适用于除 Gmail 和 Entourage 之外的所有邮件客户端:(

<p style="color:#333333; line-height: 20px; font-size: 16px; 
font-family: Helvetica, Arial, sans-serif; font-weight:bold;
margin:0; padding:0; margin-top: 1cm; text-align: left;">
Exhibit Space Sales are Open to All</p>
<p style="color:#767676; line-height: 20px; font-size: 12px;
font-family: Helvetica, Arial, sans-serif; text-align: left;
margin-bottom: 1cm; padding:0;">Lorem Ipsum is simply dummy
text of the printing and typesetting industry. Lorem Ipsum has been the
industry's standard dummy text ever since the 1500s, when an unknown printer
took a galley of type and scrambled it to make a type specimen book. It has
survived not only five centuries</p>

我们将不胜感激

最佳答案

一种方法是在第二段样式中添加“margin-top:-0.5em”。

另一个是使用 <DIV> instead of <P>

关于html - 删除两个连续段落之间的空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6066118/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com