更改段落之间和段落内部的间距 [英] Changing spacing between paragraphs and inside of paragraphs
本文介绍了更改段落之间和段落内部的间距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我找到了与此类似的主题,但是我找不到要在Wordpress中更改的特定CSS.如果您访问我的首页 或博客
I found a similar topic, to this, but I can't find the specific CSS to change in Wordpress. If you go to my homepage Or blog
我想更改段落之间和段落之间的间距.不确定我需要在CSS中修改哪个元素.
I want to change the spacing within and between paragraphs. Not sure which element I need to modify in my CSS.
找到了.body
的line-height
属性,但这似乎并没有满足我的要求.
Found a line-height
property for .body
, but that doesn't seem to do what I want.
推荐答案
在段落之间,您应该为该元素设置margin
.您可以在段落中的各行之间使用line-height
.例如:
Between paragraphs you should set a margin
for that element. Between lines within the paragraph you can use line-height
. For example:
p {
line-height: 32px; /* within paragraph */
margin-bottom: 30px; /* between paragraphs */
}
这篇关于更改段落之间和段落内部的间距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文