如何将DIV放在P中? [英] How can I put DIV in P?
本文介绍了如何将DIV放在P中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在段落中添加div?我改变显示为内联,但浏览器将基本段划分为两个元素,而div不会成为段落的成员。
How can I put div in paragraph? I changed the display to inline, but the browser divide the base paragraph to two element, and div will not member of paragraph.
推荐答案
形成w3网站:
The P element represents a paragraph. It cannot contain block-level elements (including P itself).
这篇关于如何将DIV放在P中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文