div 重叠

2021-01-12  

<style>
#a {
	width:200px;
	height:200px;
	background-color:#123;
	position:relative;
	display:inline-block;
}
#b {
	width:200px;
	height:50px;
	background-color:#CCC;
	position:absolute;
	left:10px;
	display:inline-block;
}
#c {
	width:100px;
	height:120px;
	background-color:#f40;
	display:inline-block;
}
</style>
<body>
<div id="a">
	<div id="b">b</div>
	<div id="c">c</div>
</div>
</body>

 

 

ConstXiong 备案号:苏ICP备16009629号-3