您好,登錄后才能下訂單哦!
本篇文章為大家展示了CSS中怎么實(shí)現(xiàn)鼠標(biāo)移動切換圖片,內(nèi)容簡明扼要并且容易理解,絕對能使你眼前一亮,通過這篇文章的詳細(xì)介紹希望你能有所收獲。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>純CSS圖片特效</title> <style> .vip-uc-but{ height:auto; width:600px;} .vip-uc-but div{height:90px; float:left; } .vip-uc-but a{height:90px} .vip-uc-a a{background:#ccc; width:95px; display:block;} .vip-uc-a a:hover{background:url(/jscss/demoimg/wall_s1.jpg) no-repeat;} .vip-uc-b a{background:#ccc;width:95px; display:block;} .vip-uc-b a:hover{background:url(/jscss/demoimg/wall_s2.jpg) no-repeat;} .vip-uc-c a{background:#ccc; width:95px; display:block;} .vip-uc-c a:hover{background:url(/jscss/demoimg/wall_s3.jpg) no-repeat;} .vip-uc-d a{background:#ccc; width:95px; display:block;} .vip-uc-d a:hover{background:url(/jscss/demoimg/wall_s4.jpg) no-repeat;} .vip-uc-but a:link,.vip-uc-but a:visited,.uc-regis-but a:link,.uc-regis-but a:visited{color:#fff; font-size:0px;} .vip-uc-but a:hover{color:#d7d7d7;} </style> </head> <body> <div class="vip-uc-but"> <div class="vip-uc-a"><a href="#">修改密碼</a></div> <div class="vip-uc-b"><a href="#">修改個人資料</a></div> <div class="vip-uc-c"><a href="#">查看郵件</a> </div> <div class="vip-uc-d"><a href="#">優(yōu)幣查詢提現(xiàn)</a> </div> </div> </body> </html>
上述內(nèi)容就是CSS中怎么實(shí)現(xiàn)鼠標(biāo)移動切換圖片,你們學(xué)到知識或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識儲備,歡迎關(guān)注億速云行業(yè)資訊頻道。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。