案例:HTML DOM案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
3
<head>
4
<style>
5
img.x
6
{
7
position:absolute;
8
left:0px;
9
top:0px;
10
z-index:1;
11
}
12
</style>
13
</head>
14
15
<body>
16
17
<h1>这是一个标题</h1>
18
<img class="x" src="/img/eg_bulbon.gif" /> 
19
20
<p>默认 z-index 是 0。Z-index 1 有更高的优先级。</p>
21
</body>
22
</html>
23