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