gpt4 book ai didi

html - 增加两条线之间的垂直间距

转载 作者:太空狗 更新时间:2023-10-29 15:32:37 26 4
gpt4 key购买 nike

我有如下的纯 html 文件

<div>
THis is a looooooooong text. and it goes on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on
<br/><br/>
2nd line
<br/><br/>
3rd line 3rd line 3rd line 3rd line 3rd line 3rd line 3rd line
<br/><br/>
last line
</div>

我想要的是增加两行之间的间距

现在我看到如下文字。

enter image description here

但我想要的是将两条线之间的间距增加 10px。

jsfiddle

知道怎么做吗?


空间需要如下图所示。 (例如我只考虑了第一行)

enter image description here

最佳答案

使用行高在行之间添加空间:

例如:

div {line-height:25px;} 

关于html - 增加两条线之间的垂直间距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18460642/

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