<span id="headerw">Header Here</span><br>
<span id="descw">The other description comes here..</span>
br只能用作断路器,我需要在标题和描述之间添加一个边距。我怎样才能做到这一点?我在容器中显示为块,并在descw中添加了margin-top ..但没有任何工作。
答案 0 :(得分:0)
您不应该使用<span>
标记作为标题。您应该使用<h1> - <h6>
和<p>
作为说明。这将为您提供元素之间的差额。