課程
/前端開發(fā)
/CSS3
/css3實(shí)現(xiàn)網(wǎng)頁平滑過渡效果
a 標(biāo)簽里的href="#st-1" ,為什么可以用#st-1設(shè)置樣式????
2015-11-20
源自:css3實(shí)現(xiàn)網(wǎng)頁平滑過渡效果 1-4
正在回答
這是a鏈接錨記的用法,例如
<a?href="#test">連接點(diǎn)</a>
<div?id="test">測(cè)試代碼</div>
意思是點(diǎn)擊a超鏈接,跳轉(zhuǎn)到頁面里id為test的地方
啊北側(cè)的 提問者
舉報(bào)
CSS3 打造頁面之間的平滑過渡效果,帶來神奇的體驗(yàn)
1 回答#st-control-1,#st-control-1 + a{....} 為什么這里不能用類選擇器,而用id選擇器
2 回答.st-container > input,.st-container > a可以換成.st-container > input + a 嗎
1 回答#st-control-2:checked ~.st-sctoll #st-panel-1 h2{ }選擇不生效
1 回答.st-container > a{}和和.st-container a{}是一樣的嗎?
1 回答#st-control-1:checked ~ .st-scroll的選擇是如何實(shí)現(xiàn)的
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2015-11-21
這是a鏈接錨記的用法,例如
<a?href="#test">連接點(diǎn)</a>
<div?id="test">測(cè)試代碼</div>
意思是點(diǎn)擊a超鏈接,跳轉(zhuǎn)到頁面里id為test的地方