我试图让嵌套的div,这样我就可以定位与上边和左边的孩子,这样他们就可以互相重叠:嵌套的DIV,如何让孩子真正在里面?
https://jsfiddle.net/e0cpuarv/
.boo {
position: absolute;
left: 10px;
top: 10px;
width: 100px;
height: 70px;
background-color: red;
}
.kah1 {
position: absolute;
left: 20px;
top: 30px;
width: 50px;
height: 50px;
background-color: green;
}
.kah2 {
position: absolute;
left: 30px;
top: 40px;
width: 50px;
height: 50px;
background-color: blue;
}
<body>
<div class="boo">
<div class="kah1"></div>
<div class="kah2"></div>
</div>
</body>
它与一个巨大缺点 - 孩子只是在父母的顶端。我应该怎样做才能让他们成为家长,像这样?
事实上,孩子可能不会资料核实,IMGS就足够了太多,如果这有助于
谢谢,这个工作! =) –
为什么sir @VictorMuller –