什么是css的行高?

问题描述 投票:3回答:6

所以只有两种可能性。

1)如果行高是两行之间的高度那么一行的行高是多少?

2)如果行高是行的高度,那么如果我将行高设为0,那么什么都不可见?但正如您在行高0后的示例中所看到的,内容是可见的。

<!DOCTYPE html>
<html>
<head>
<style>
p {
    line-height: 0;
}


</style>
</head>
<body>

<p>
First Line First Line First Line First Line First Line<br>
Second Line Second Line Second Line<br>
Third Line Third Line <br>
</p>


</body>
</html>

哪一个是正确的?

javascript html css
6个回答
© www.soinside.com 2019 - 2024. All rights reserved.