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

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

用css3實(shí)現(xiàn)自動(dòng)輪播,hover暫停,點(diǎn)擊圓點(diǎn)手動(dòng)切換效果怎么實(shí)現(xiàn)?

用css3實(shí)現(xiàn)自動(dòng)輪播,hover暫停,點(diǎn)擊圓點(diǎn)手動(dòng)切換效果怎么實(shí)現(xiàn)?

oldwan 2016-06-12 17:33:46
<!DOCTYPE?html> <html> <head> ????<meta?charset="UTF-8"> ????<title>Document</title> ????<style?type="text/css"> ????????.parent{width:?200px;height:?100px;overflow:?hidden;position:?relative;} ????????ul,#red,#green,#blue{box-sizing:?border-box;?margin:?0px;padding:?0px;list-style:?none;} ????????ul{width:?600px;height:?100px;position:?relative;transition:?left?2s?ease-in-out;} ????????#red,#green,#blue{float:?left;?width:?200px;height:?100px;} ????????#red{background-color:?red;} ????????#green{background-color:?green;} ????????#blue{background-color:?blue;} ????????/*圓點(diǎn)樣式*/ ????????.dot{position:?absolute;right:?0px;bottom:?5px;z-index:?100;} ????????.dot?a{display:?inline-block;?width:?15px;height:?15px;border-radius:?15px;?margin-right:5px;?background-color:?#fff;?} ????????.dot?a:hover{background-color:?grey;} ????????/*定義動(dòng)作*/ ????????@keyframes?mymove{?0%{left:?-0px}?50%{left:?-200px}?100%{left:?-400px}?} ????????/*引入動(dòng)作*/ ????????ul{animation:?mymove?6s?infinite?alternate;} ????????ul:hover{animation-play-state:?paused;} ????????/*跳轉(zhuǎn)至錨點(diǎn)banner1時(shí)ul執(zhí)行下面的樣式????????不過貌似和上面的動(dòng)畫不能一起用??????該怎么實(shí)現(xiàn)*/ ????????#banner1:target~ul{left:0px;} ????????#banner2:target~ul{left:-200px;} ????????#banner3:target~ul{left:-400px;} ????</style> </head> <body> ????<div> ????????<span?id="banner1"></span> ????????<span?id="banner2"></span> ????????<span?id="banner3"></span> ????????<ul> ????????????<li?id="red"></li> ????????????<li?id="green"></li> ????????????<li?id="blue"></li> ????????</ul> ????????<div><a?href="#banner1"?></a><a?href="#banner2"></a><a?href="#banner3"></a></div> ????</div> </body> </html>
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 2842 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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