删除h1和段落之间的空白行

时间:2014-01-28 01:28:06

标签: html

我想仅使用HTML删除任何h(n)和段落之间的空行。  我在jsfiddle和hscripts.com/tutorials/css/paddingp5.php中尝试了以下内容,它似乎有效。但它不适用于我的页面。我究竟做错了什么? 谢谢

<h2 span style="text-align:left; margin:0; padding:0;">Quiet the Mind</h1>  
    <p>Meditation is a "quieting" of the mind.</p>

喔。好。我看到一件事我做错了。我忘记了结束的span标签。看起来不错。代码只留下一个空行即可。

现在,只能使用HTML删除h(n)和段落之间的所有空行吗? 谢谢

1 个答案:

答案 0 :(得分:1)

<h2 span style="text-align:left; margin:0; padding:0;">Quiet the Mind</h1>  
<p style="margin: 0; padding: 0">Meditation is a "quieting" of the mind.</p>
相关问题