Home >Web Front-end >HTML Tutorial >css paragraph top and bottom spacing_html/css_WEB-ITnose
For example, e388a4556c0f65e1904146cc1a846beetext text text94b3e26ee717c64999d7867364b1b4a3
After the text is wrapped, how can you set the upper and lower spacing of p? Because it needs to be called dynamically, the br tag cannot be used.
The desired effect Yes
Text
Text
Text
.conten p{margin-bottom:10px;}
p {line-height:30px;}
p{line-height:1.5}
means that the line height of p is 1.5 times the height and width of p text
line-height :24px;Set line spacing
Thank you everyone, I haven’t written code for a long time, and I even forgot this.