課程
/前端開(kāi)發(fā)
/HTML/CSS
/十天精通CSS3
qwq 嚶~
2017-07-18
源自:十天精通CSS3 7-8
正在回答
?a:hover:before{
? ? ? ? ? ? opacity:0;
? ? ? ? ? ? }
這是鼠標(biāo)移動(dòng)到a::before之上透明度為0
? a::before{
? ? ? ? ? ? content:"";
? ? ? ? ? ? display: block;
? ? ? ? ? ? height: 120px;
? ? ? ? ? ? width: 120px;
? ? ? ? ? ? border: 5px solid #fff;
? ? ? ? ? ? border-radius: 50%;
? ? ? ? ? ? position: absolute;
? ? ? ? ? ? left: 50%;
? ? ? ? ? ? margin-left: -60px;
? ? ? ? ? ? z-index: 99999;
? ? ? ? ? ? top: -80px;
? ? ? ? ? ? background: rgba(0,0,0,0.3);
background: rgba(0,0,0,0.3);最后0.3是設(shè)置透明度
舉報(bào)
本課程為CSS3入門(mén)教程,深刻詳解CSS3知識(shí)讓網(wǎng)頁(yè)穿上絢麗裝備
1 回答為什么點(diǎn)擊縮略圖可以切換背景?
4 回答如何設(shè)置背景圖片的透明度
3 回答關(guān)于縮略圖的問(wèn)題
1 回答為什么縮略圖就一個(gè)啊
1 回答為什么第一張縮略圖和第二張縮略圖沒(méi)有效果?有什么問(wèn)題嗎
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2017-07-24
?a:hover:before{
? ? ? ? ? ? opacity:0;
? ? ? ? ? ? }
這是鼠標(biāo)移動(dòng)到a::before之上透明度為0
2017-07-24
? a::before{
? ? ? ? ? ? content:"";
? ? ? ? ? ? display: block;
? ? ? ? ? ? height: 120px;
? ? ? ? ? ? width: 120px;
? ? ? ? ? ? border: 5px solid #fff;
? ? ? ? ? ? border-radius: 50%;
? ? ? ? ? ? position: absolute;
? ? ? ? ? ? left: 50%;
? ? ? ? ? ? margin-left: -60px;
? ? ? ? ? ? z-index: 99999;
? ? ? ? ? ? top: -80px;
? ? ? ? ? ? background: rgba(0,0,0,0.3);
? ? ? ? ? ? }
background: rgba(0,0,0,0.3);最后0.3是設(shè)置透明度