gpt4 book ai didi

html - 增加标题和段落之间的空间

转载 作者:太空宇宙 更新时间:2023-11-04 02:15:06 26 4
gpt4 key购买 nike

如果您在 Snippet 下面运行,您会看到标题和段落之间有很多空间。

表示介于“1. 访问端口、控件和传感器”和“所有情况”之间

但在站点中,它显示如下图:

enter image description here

所以我想增加“标题和段落”之间的空间。

我还想增加每个单词之间的空间,我想像下图一样显示:

enter image description here

<div class="product-size-space-img"><img alt="" src="/media/wysiwyg/new-image.jpg" /></div>
<div class="product-size-space-content">
<b>1. Access to ports, controls and sensors</b>
<p>All cases we sell have access to all ports, buttons, camera and sensors, there won&rsquo;t be any interference with your phone censors. Fully compatible with regular charges and headphones.</p>
<b>2. Protect it from bumps and drops</b>
<p>This case is made of light, durable and slim material called polycarbonate, it is hard plastic with high impact resistance and low scratch resistance. It is flexible enough to snap on to your phone with ease and strong enough to protect it from&ensp;&ensp; bumps, scratches and accidental drops.</p>
<b>3.Lay-flat bezel raise lip </b>
<p>Raised lip around the sides of the case protects your screen from directly contacting surfaces on accidents drops.</p>
<b>4. High quality printing</b>
<p>Site1 name uses image transfer technologies which results high quality designs embedded right onto the surface of the phones cases, so there won&rsquo;t be any peeling off or wearing off or chipping on your case design.</p>
</div>
<div style="clear: both;">&nbsp;</div>

最佳答案

尝试使用下面的代码来设置标题和段落之间的空格以及每个单词的空格:

p {
line-height: 25px;
margin: 15px 0;
word-spacing: 5px;
}
<div class="product-size-space-img"><img alt="" src="/media/wysiwyg/new-image.jpg" /></div>
<div class="product-size-space-content">
<b>1. Access to ports, controls and sensors</b>
<p>All cases we sell have access to all ports, buttons, camera and sensors, there won&rsquo;t be any interference with your phone censors. Fully compatible with regular charges and headphones.</p>
<b>2. Protect it from bumps and drops</b>
<p>This case is made of light, durable and slim material called polycarbonate, it is hard plastic with high impact resistance and low scratch resistance. It is flexible enough to snap on to your phone with ease and strong enough to protect it from&ensp;&ensp; bumps, scratches and accidental drops.</p>
<b>3.Lay-flat bezel raise lip </b>
<p>Raised lip around the sides of the case protects your screen from directly contacting surfaces on accidents drops.</p>
<b>4. High quality printing</b>
<p>Site1 name uses image transfer technologies which results high quality designs embedded right onto the surface of the phones cases, so there won&rsquo;t be any peeling off or wearing off or chipping on your case design.</p>
</div>
<div style="clear: both;">&nbsp;</div>

关于html - 增加标题和段落之间的空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39033304/

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