亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

寬高自適應問題

我這邊是想合并一張圖,分別是四個圓形圖裝在四個角,但是為什么我的四個小圖重疊了,沒有讓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>


正在回答

1 回答

你box中4個角的div的class去哪了?

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
CSS圓角進化論
  • 參與學習       26410    人
  • 解答問題       96    個

CSS小圓角,三種制作方式都教給你,并詳細講解每一種的實現方式

進入課程

寬高自適應問題

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號