实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<style>
5
p.small
6
{
7
line-height: 0.5
8
}
9
p.big
10
{
11
line-height: 2
12
}
13
</style>
14
</head>
15
<body>
16
17
<p>
18
This is a paragraph with a standard line-height.
19
The default line height in browsers is "1".
20
This is a paragraph with a standard line-height.
21
This is a paragraph with a standard line-height.
22
</p>
23
24
<p class="small">
25
This is a paragraph with a smaller line-height.
26
This is a paragraph with a smaller line-height.
27
This is a paragraph with a smaller line-height.
28
This is a paragraph with a smaller line-height.
29
</p>
30
31
<p class="big">
32
This is a paragraph with a bigger line-height.
33
This is a paragraph with a bigger line-height.
34
This is a paragraph with a bigger line-height.
35
This is a paragraph with a bigger line-height.
36
</p>
37
38
</body>
39
</html>
40