第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

只能實(shí)現(xiàn)這種效果 標(biāo)紅的區(qū)域怎么能填充上顏色

<div?style="width:?300px;height:?300px;background-color:?rgba(47,41,90,0.14);position:?relative;overflow:?hidden;">
????<div?style="width:?300px;height:?300px;border:?40px?dotted?#36CBCB;box-sizing:?border-box;position:?relative;">
????????<div?style="background-color:?#36CBCB;width:?260px;height:?260px;position:?absolute;top:?-20px;left:?-20px;"></div>
????</div>
</div>





http://img1.sycdn.imooc.com//6074fc800001884f19110514.jpg



正在回答

1 回答

? ? <div style="width: 300px;height: 300px;background-color: rgba(47,41,90,0.14);overflow: hidden;">

<div style="background-color: red;width: 260px;height: 40px;position: absolute;top: 0px;left: 20px;" ></div>

? ? ? ? <div style="width: 300px;height: 300px;border: 40px dotted #36CBCB;box-sizing: border-box;position: relative;">

? ? ? ? ? ? <div style="background-color: #36CBCB;width: 260px;height: 260px;position: absolute;top: -20px;left: -20px;"></div>

? ? ? ? </div>

? ? </div>

我是填充了一層紅色來當(dāng)邊框的背景,也是通過定位來實(shí)現(xiàn)的,由于先寫層級(jí)低于后面的邊框?qū)?/p>

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

只能實(shí)現(xiàn)這種效果 標(biāo)紅的區(qū)域怎么能填充上顏色

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)