本篇文章為大家展示了使用絕對定位怎么重疊div,內(nèi)容簡明扼要并且容易理解,絕對能使你眼前一亮,通過這篇文章的詳細(xì)介紹希望你能有所收獲。

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
.div-relative {position: absolute;color: #000;border: 1px solid #000;width: 500px;height: 400px;right: 0;bottom: 0;}
.div-a {position: absolute;left: 30px;top: 30px;background: #F00;width: 200px;height: 100px}
.div-b {position: absolute;left: 50px;top: 60px;background: #FF0;width: 400px;height: 200px}
.div-c {position: absolute;left: 80px;top: 80px;background: #00F;width: 300px;height: 300px;}
</style>
</head>
<body>
<div class="div-relative">
<div class="div-a">我背景為紅色</div>
<div class="div-b">我背景為黃色</div>
<div class="div-c">我背景為藍(lán)色</div>
</div>
</body>
</html>上述內(nèi)容就是使用絕對定位怎么重疊div,你們學(xué)到知識或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識儲備,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。
網(wǎng)頁標(biāo)題:使用絕對定位怎么重疊div-創(chuàng)新互聯(lián)
瀏覽地址:http://www.chinadenli.net/article2/iioic.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供企業(yè)建站、手機(jī)網(wǎng)站建設(shè)、Google、移動網(wǎng)站建設(shè)、小程序開發(fā)、網(wǎng)站改版
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容