宽高自适应问题
我这边是想合并一张图,分别是四个圆形图装在四个角,但是为什么我的四个小图重叠了,没有让box高宽度自适应啊,
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.box{
border: 1px solid brown;
background-color: yellow;
position: relative;
}
.lt{
height: 40px;
width: 40px;
background: url(01.png) no-repeat;
position: absolute;
}
.rt{
height: 40px;
width: 40px;
background: url(02.png) no-repeat;
position: absolute;
top:0;
right: 0;
}
.lb{
height: 40px;
width: 40px;
background: url(03.png) no-repeat;
position: absolute;
left:0;
bottom: 0;
}
.rb{
height: 40px;
width: 40px;
background: url(04.png) no-repeat;
position: absolute;
right:0;
bottom:0;
}
.text_{
text-align: center;
}
</style>
</head>
<body>
<div class="box text_">
<div></div>
<div></div>
<div></div>
<div></div>
<p>lalala</p>
</div>
</body>
</html>