以前,我的 HTML 在“</p>”标记之后会有一个换行符,并且还会在后面留下一个空行,为下一段做好准备。然而,这种情况已经停止发生。
这是我的段落的 CSS:
p, a, li, form, input {
font-family: 'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif;
font-size: 16px;
font-style: normal;
font-variant: normal;
font-weight: 400;
line-height: 20px;
}
Run Code Online (Sandbox Code Playgroud)
<br>标签后没有“自动” <p>。您所看到的(作为“空白线”)就是值margin-bottom。如果您的标签下没有“空行” p,则可能几乎没有margin-bottom价值。
这会在你的元素下添加一些空间<p>;调整口味。
p {
margin-bottom: 1em;
}
Run Code Online (Sandbox Code Playgroud)