寬高自適應(yīng)問(wèn)題
我這邊是想合并一張圖,分別是四個(gè)圓形圖裝在四個(gè)角,但是為什么我的四個(gè)小圖重疊了,沒(méi)有讓box高寬度自適應(yīng)啊,
<!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>
2016-12-01
你box中4個(gè)角的div的class去哪了?