就是在层中放入一个子层,再在子层中又放入一个子层,这样可以吗
我这样做了一下,最里面的子层就什么也看不到了,属性已经设为visible
就是在层中放入一个子层,再在子层中又放入一个子层,这样可以吗
我这样做了一下,最里面的子层就什么也看不到了,属性已经设为visible
<!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/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:173px;
top:36px;
width:288px;
height:211px;
background-color:#000000;
z-index:1;
}
#Layer2 {
position:absolute;
left:133px;
top:111px;
width:283px;
height:198px;
background-color:red;
z-index:2;
}
#Layer3{
position:absolute;
left:100px;
top:130px;
width:230px;
height:130px;
background-color:green;
z-index:3;
}
-->
</style>
</head>
<body>
<div id="Layer1"></div>
<div id="Layer2"></div>
<div id="Layer3"></div>
</body>
</html>
我给你做的一个代码,层里面可以嵌套层,你把代码复制走预览一下就应该差不多了。
希望你成功!
可以的你可能没设制边框的颜色,所以看不见吧
你试试每个层写个样式,让他们的border的颜色显示出来,这样应该能看到吧