案例:CSS3 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
3
<head>
4
<style type="text/css">
5
img.top {vertical-align:text-top}
6
img.bottom {vertical-align:text-bottom}
7
</style>
8
</head>
9
10
<body>
11
12
<p>
13
这是一幅<img class="top" border="0" src="/img/eg_cute.gif" />位于段落中的图像。
14
</p> 
15
16
<p>
17
这是一幅<img class="bottom" border="0" src="/img/eg_cute.gif" />位于段落中的图像。
18
</p>
19
20
</body>
21
22
</html>
23