0

要在 wordpess 中显示内容,我使用<p><?php the_content();?></p>,但出现验证错误:

 Line 94, Column 3: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<p>For companies that are willing to minimize their accounting costs or jus bar…  

如果我改成pspan得到同样的错误,也许有人知道任何解决方案来解决这个问题,验证错误?

4

1 回答 1

0

the_content() 里面已经有 p 个元素,所以没有必要把它包装在 p 中。

我建议将其包装在一个 div 中。

于 2012-12-27T11:52:57.480 回答