当前位置: 代码迷 >> HTML/CSS >> <p>的行间距如何做
  详细解决方案

<p>的行间距如何做

热度:690   发布时间:2012-02-03 22:02:47.0
<p>的行间距怎么做?
<p> <input   type= "text "/> </p>
<p> <input   type= "text "/> </p>

P{margin:0}/*两个P离得很近*/
P{margin:1}/*两个P离得很远*/

我郁闷了。

------解决方案--------------------
P{margin:1}/*两个P离得很远*/

这个显然是错误的

单位都没有写上,只有参数为0时,才可以省去单位
  相关解决方案