兔斯基的表情打分圖示,有給力、淡定、打醬油、學習等圖示。圖示是動態的。而且可以看到打分的分數。如下
工具/原料
Adobe Dreamweaver cs5
方法/步驟
開啟Adobe Dreamweaver cs5,新建一個網頁,切換到程式碼那裡。然後把以上的程式碼全部刪除,貼上如下程式碼:
在之間插入程式碼:
/* apps_svy_mood */
#apps_svy_mood{width:580px;margin:0 auto;}
#apps_svy_mood h2{margin:30px 0 30px 0;padding:0 0 0 60px;height:50px;line-height:65px;overflow:hidden;background:url(images/qin.gif) no-repeat;font-size:16px;font-family:"微軟雅黑","宋體";font-weight:normal;color:#000000;border-bottom:solid 1px #ddd;text-align:left;}
#apps_svy_mood .apps_svy_mood{margin:0 auto;padding:0px;}
#apps_svy_mood ul{margin:0px;padding:0px;}
#apps_svy_mood .mood{width:50px;margin:0 auto;}
#apps_svy_mood li{width:116px;float:left;text-align:center;list-style:none;position:relative;color:#3366cc;font-size:14px;font-weight:800;}
繼續插入程式碼:
#apps_svy_mood .mood_result{width:50px;height:auto;margin:0 auto;padding:0px;}
#apps_svy_mood .mood_result .ft{padding:0px;position:relative;margin-bottom:0px;left:1px;*left:0px;_left:0px;color:#000000;font-size:12px;}
#apps_svy_mood .mood_result .ft_b{padding:0px;position:relative;margin-bottom:0px;left:1px;*left:0px;_left:0px;color:#EE0000;font-size:12px;font-weight:bold;}
#apps_svy_mood .mood_result .bar{width:10px;height:52px;border:1px solid #DADADA;padding:0px;background:#fff;position:relative;margin-bottom:5px;left:20px;*left:0px;_left:0px;}
#apps_svy_mood .mood_result .bar .bg{margin:0px;padding:1px;height:0;background:url(images/bg.gif) repeat;width:8px;position:absolute;left:0px;bottom:0px;line-height:0px;font-size:0px;}
繼續:
#apps_svy_mood .mood_nopd{width:50px;height:50px;margin:0 auto;background:url(images/biaoqing.gif) no-repeat;border:solid 1px #fff;}
#apps_svy_mood .mood1_nop{background-position:0px 0px;}
#apps_svy_mood .mood2_nop{background-position:-50px 0px;}
#apps_svy_mood .mood3_nop{background-position:-100px 0px;}
#apps_svy_mood .mood4_nop{background-position:-150px 0px;}
#apps_svy_mood .mood5_nop{background-position:-200px 0px;}
繼續:
#apps_svy_mood .mood_opd{width:50px;height:50px;margin:0 auto;background:url(images/biaoqing.gif) no-repeat;cursor:default;border:solid 1px #fff;}
#apps_svy_mood .mood1_op{background-position:0px 0px;}
#apps_svy_mood .mood2_op{background-position:-50px 0px;}
#apps_svy_mood .mood3_op{background-position:-100px 0px;}
#apps_svy_mood .mood4_op{background-position:-150px 0px;}
#apps_svy_mood .mood5_op{background-position:-200px 0px;}
#apps_svy_mood a{width:50px;height:50px;display:block;margin:0 auto;border:solid 1px #fff;}
#apps_svy_mood a:hover{font-weight:800;text-decoration:none;}
#apps_svy_mood a:hover{border:solid 1px #ddd;}
#apps_svy_mood a.mood1{background:url(images/geili.gif) no-repeat;}
#apps_svy_mood a.mood2{background:url(images/dandian.gif) no-repeat;}
#apps_svy_mood a.mood3{background:url(images/xuexi.gif) no-repeat;}
#apps_svy_mood a.mood4{background:url(images/kengdie.gif) no-repeat;}
#apps_svy_mood a.mood5{background:url(images/dajiangyou.gif) no-repeat;}
然後繼續插入
切換到設計頁面。效果如下