在一个主要的<p>
标签内,我有很多<br />
标签。
我想增加由<br>
(例如上下边距)创建的视觉空间。
<p>
Some text here<br />
Some other text<br />
Some other text
</p>
我可以使用不同的 <p>
标签,但在我的网站上必须按这种方式进行。
有什么办法可以增加 <br>
创建的间距吗?非常感谢。
If you no want to use css, try of this code. when you use style with
of Html file the javascript programming will be prefer your order in Html file instead of same class inside the file of css.
<p style="line-height: 2.7">
Some text here<br />
Some other text<br />
Some other text
</p>
<p style="margin-top: 3.5em">
Some text here<br />
Some other text<br />
Some other text
</p>
<p style="line-height: 0.6; margin-top: 7.0em">
Some text here<br />
Some other text<br />
Some other text
</p>
I hope my answer helped for your question.
best regards,
Wahab
line-height
属性。p {line-height:70px}
我认为br标签只是用于换行,没有其他作用。为什么要尝试编写一种绕过的代码呢?如果您无法使用任何建议的答案,我建议您只使用多个br标签。