如何避免带有 p 标签的新行?

2022-01-18 00:00:00 tags html css

如何在使用 <p> 标记时保持在同一行?

How can I stay on the same line while working with <p> tag?

推荐答案

使用 display: inline CSS 属性.

Use the display: inline CSS property.

理想:在样式表中:

#container p { display: inline }

糟糕/极端情况:内联:

Bad/Extreme situation: Inline:

<p style="display:inline">...</p>

相关文章