純CSS實現(xiàn)鼠標(biāo)移動切換圖片示例
發(fā)布時間:2014-04-15 16:59:43 作者:佚名
我要評論

鼠標(biāo)移動切換圖片在之前基本上都是使用javascript來實現(xiàn)的,或許這已out,下面為大家介紹的這個是使用純CSS實現(xiàn)鼠標(biāo)移動切換圖片,感興趣的朋友不要錯過
復(fù)制代碼
代碼如下:<!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>
相關(guān)文章
html+css+javascript實現(xiàn)跟隨鼠標(biāo)移動顯示選中效果
這篇文章主要介紹了html+css+javascript實現(xiàn)跟隨鼠標(biāo)移動顯示選中效果 ,需要的朋友可以參考下2019-05-10利用HTML+CSS實現(xiàn)跟蹤鼠標(biāo)移動功能
這篇文章主要介紹了利用HTML+CSS實現(xiàn)跟蹤鼠標(biāo)移動功能,非常不錯,具有一定的參考借鑒價值,需要的朋友可以參考下2019-05-10CSS實現(xiàn)鼠標(biāo)移動到圖片或按鈕上改變大小的方法示例
這篇文章主要介紹了CSS實現(xiàn)鼠標(biāo)移動到圖片或按鈕上改變大小的方法示例的相關(guān)資料,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2019-09-03在CSS中映射鼠標(biāo)位置并實現(xiàn)通過鼠標(biāo)移動控制頁面元素效果(實例代碼)
這篇文章主要介紹了在CSS中映射鼠標(biāo)位置并實現(xiàn)通過鼠標(biāo)移動控制頁面元素效果,本文通過實例代碼給大家介紹的非常詳細,對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的2021-04-21