段落只能包含行内内容,不能包含块级元素。
下面这段源码把 div 放进了 p:
<p>文字<div class="box">块</div></p>
文字
块级元素放在段落外面:
<p>文字</p><div class="box">块</div>