how to avoid a new line with p tag?(如何避免带有 p 标签的新行?)
本文介绍了如何避免带有 p 标签的新行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在使用 <p>
标记时保持在同一行?
How can I stay on the same line while working with <p>
tag?
推荐答案
使用 display: inline
CSS 属性.
Use the display: inline
CSS property.
理想:在样式表中:
糟糕/极端情况:内联:
Bad/Extreme situation: Inline:
这篇关于如何避免带有 p 标签的新行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!