p 行间距
场景:<p>的行间距如何做
<p>的行间距怎么做?
<p> <input type= "text "/> </p>
<p> <input type= "text "/> </p>
P{margin:0}/*两个P离得很近*/
P{margin:1}/*两个P离得很远*/
我郁闷了。
------解决方案--------------------
P{margin:1}/*两个P离得很远*/
这个显然是错误的
单位都没有写上,只有参数为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时,才可以省去单位