<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/htmlcharset=gb2312" />
<title>交叉重叠层</title>
<style type="text/css">
html{ color:#f00}
#top{width:200pxheight:300pxbackground-color:#fffposition:absolutetop:50pxleft:50px}
#bottom{width:300pxheight:400pxbackground-color:#000z-index:-100position:absolutetop:0left:0}
</style>
</head>
<body>
<div id="top">上面层</div>
<div id="bottom">下面层</div>
</body>
</html>
可以用z-index来定义层的上下关系
看到这个题目有了兴趣就测试了下,可惜用我以下的样式不支持IE6、IE7,其他浏览器支持;不过题目是死得,工作中不存在这种问题了<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/htmlcharset=gb2312" />
<title>无标题文档</title>
<style>
body{font-size:16px}
.li1{float:leftpadding-top:60px}
.li2{float:leftpadding-top:30pxmargin-left:-55px}
.li3{float:leftmargin-left:-55px}
</style>
</head>
<body>
<ol>
<li class="li1">CCCCCCC</li>
<li class="li2">BBBBBBB</li>
<li class="li3">AAAAAAA</li>
</ol>
</body>
</html>