如何使多行p标签和文本显示为整洁的表格



我的格式中有html文本,例如:

<p>Something</p> Some other text here.
<p>Something</p> Some other text here.
<p>Something</p> Some other text here.

现在,当我在浏览器中显示它时,它显示为:

Something

Some other text here.

Something

Some other text here.

Something

Some other text here.

但是,我想在整洁的表中显示它。

喜欢:

Something Some text here.

Something Some text here.

Something Some text here.

可能吗?

编辑:对不起!我认为这是不可能的。我要去上班。

向您的<p>添加一些CSS,

p{
  display:inline;
  margin-right:30px;
  }

p{
  display:inline;
  margin-right:30px;
  }
<p>Something</p> Some other text here.<br> <p>Something</p> Some other text here.<br> <p>Something</p> Some other text here.

相关内容

  • 没有找到相关文章

最新更新