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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

已經(jīng)設(shè)置了absolute絕對(duì)定位,但clip屬性設(shè)置仍無(wú)效

已經(jīng)設(shè)置了absolute絕對(duì)定位,但clip屬性設(shè)置仍無(wú)效

*{ ????margin:?0?auto; ????border:?0; ????padding:?0; } html?body{ ????position:?relative; } #cn{ ????width:?430px; ????height:?260px; ????border:?2px?solid?#f60; ????padding:?0; ????position:?absolute; ????top:?100px; ????left:?100px; } #img2{ ????position:?absolute; ????opacity:0.1; ????z-index:?1; } #img1{ ????position:?absolute; ????z-index:?5; ????clip:?rect(0px?0px?50px?50px); } #select{ ????height:?50px; ????width:?50px; ????position:?absolute; ????z-index:2; ????border:?1px?solid?#f00; }<!DOCTYPE?html> <html> <head> ????<meta?charset="UTF-8"> ????<title></title> ????<link?rel="stylesheet"?type="text/css"?href="css/ClipWithJS.css"/> </head> <body> ????<div?id="cn"> ????????<img?id="img2"?src="images/bg2.jpg"?/> ????????<img?id="img1"?src="images/bg1.jpg"?/> ????????<div?id="select"> ????????</div> ????</div> </body> <script?type="text/javascript"> </script> </html>圖片大小均一樣大,width=430px, height=260px測(cè)試效果發(fā)現(xiàn)設(shè)置clip圖片1就不顯示不設(shè)置clip圖片1才會(huì)壓在圖片2上不知道原因何在,我估計(jì)是clip設(shè)置的問(wèn)題
查看完整描述

3 回答

?
echo_kinchao

TA貢獻(xiàn)600條經(jīng)驗(yàn) 獲得超86個(gè)贊

你看看審查元素 是不是你看到的不是你點(diǎn)擊到的

查看完整回答
反對(duì) 回復(fù) 2016-01-20
  • 3 回答
  • 0 關(guān)注
  • 2611 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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