網頁圖標對于站長們來說,是再熟悉不過的東西了,大家都知道那是圖像,那么您有沒有見過使用純CSS生成的網頁圖標呢?今天網就給大家發一款由CSS3技術實現的RSS訂閱圖標代碼,注意哦在IE9以下瀏覽器兼容性不好。請使用IE9+、Chrome、火狐和Opera等瀏覽器,還有響應鼠標的顏色變換效果呢!
演示:
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS3 實現RSS圖標</title><style type='text/css'>body{padding:50px 0 0 0}span.feed-box{display:block;width:100px;height:100px;margin:0 auto;background:#F9A004;box-shadow:1px 1px 0 #C27C03,2px 2px 0 #C27C03,3px 3px 0 #C27C03;-moz-box-shadow:1px 1px 0 #C27C03,2px 2px 0 #C27C03,3px 3px 0 #C27C03;-webkit-box-shadow:1px 1px 0 #C27C03,2px 2px 0 #C27C03,3px 3px 0 #C27C03;-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px}span.feed-box *{float:right;display:block}span.feed-box .feed-box-in{border:2px solid #FFC563;width:92px;height:92px;margin:2px 2px 0 0;-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;overflow:hidden}span.feed-box .feed-box-in .feed-quarter-circle-big{margin:8px 8px 0 0;width:130px;height:130px;border:13px solid #FFDEA5;border-radius:50%}span.feed-box .feed-box-in .feed-quarter-circle-big .feed-quarter-circle-small{margin:9px 9px 0 0;width:88px;height:88px;border:12px solid #FFDEA5;border-radius:50%}span.feed-box .feed-box-in .feed-quarter-circle-big .feed-quarter-circle-small .feed-circle{margin:13px 13px 0 0;background:#FFDEA5;width:35px;height:35px;border-radius:50%}span.feed-box:hover{background:#07C103;box-shadow:1px 1px 0 #058E02,2px 2px 0 #058E02,3px 3px 0 #058E02;-moz-box-shadow:1px 1px 0 #058E02,2px 2px 0 #058E02,3px 3px 0 #058E02;-webkit-box-shadow:1px 1px 0 #058E02,2px 2px 0 #058E02,3px 3px 0 #058E02}span.feed-box:hover .feed-box-in{border-color:#58FC55}span.feed-box:hover .feed-box-in .feed-quarter-circle-big,span.feed-box:hover .feed-box-in .feed-quarter-circle-big .feed-quarter-circle-small{border-color:#B9FFB7}span.feed-box:hover .feed-box-in .feed-quarter-circle-big .feed-quarter-circle-small .feed-circle{background:#B9FFB7}</style></head><body><span class='feed-box'><span class='feed-box-in'><span class='feed-quarter-circle-big'><span class='feed-quarter-circle-small'><span class='feed-circle'> </span><!-- #circle --></span><!-- #feed-quarter-circle-small --></span><!-- #feed-quarter-circle-big --></span><!-- #feed-box-in --></span><!-- #feed-box --></body></html><div style="text-align:center;margin:30px 0 0 0;"><hr style="color:#999;height:1px;">如不能顯示效果,請按Ctrl+F5刷新本頁,更多網頁代碼:<a href='http://www.vxbq.cn/' target='_blank'>http://www.vxbq.cn/</a></div>提示:可修改后代碼再運行!
上一篇 建站分析文章營銷技巧與推廣方法
下一篇 Ubuntu 9.10使用過程中一些小問題與解決方法
程序員人生,我編程,我富裕,記住wfuyu網,php教程,php學習,php手冊,CMS模版制作
聲明:本站大部分內容是作者原創,少部分收集于互聯網供大家一起學習,原版權很多不明,如有侵權請聯系本站,謝謝!
粵ICP備14040726號-1?? 2015-2020 程序員人生 版權所有