2月23

css星级投票效果下载

| |
08:28 奇趣网络信息  From: 本站原创
Highslide JS
下载文件 (已下载 132 次)


<style type="text/css">
#star-rating{
list-style:none;
margin: 0 10px 0 0;
padding:0px;
width: 100px;
line-height:20px;
height: 20px;
position: relative;
background: url(star_rating.gif) no-repeat -40px top;
}
#star-rating li{
color:#FF6600;
font-weight:bold;
padding:0px;
margin:0px;
float: left;
}
#star-rating li a{display:block;width:20px;height: 20px;text-decoration: none;text-indent: -5000px;z-index: 20;position: absolute;padding: 0px;}
#star-rating li a:hover{background: url(star_rating.gif) no-repeat;z-index: 1;left: 0px;width:100px;}
#star-rating a.one-star{left: 0px;}
#star-rating a.one-star:hover{background-position:-80px top;}
#star-rating a.two-stars{left:20px;}
#star-rating a.two-stars:hover{background-position:-60px top;}
#star-rating a.three-stars{left: 40px;}
#star-rating a.three-stars:hover{background-position:-40px top;}
#star-rating a.four-stars{left: 60px;}
#star-rating a.four-stars:hover{background-position:-20px top;}
#star-rating a.five-stars{left: 80px;}
#star-rating a.five-stars:hover{background-position:0px top;}
</style>
<ul id="star-rating">
        <li><a href="#" title="很差" class="one-star">1</a></li>
        <li><a href="#" title="差" class="two-stars">2</a></li>
        <li><a href="#" title="一般" class="three-stars">3</a></li>
        <li><a href="#" title="好" class="four-stars">4</a></li>
        <li><a href="#" title="很好" class="five-stars">5</a></li>
</ul>

来源:http://blog.mzoe.com
最后编辑: tommyhu 编辑于2010/02/23 08:29
阅读(4222) | 评论(0) | 引用(0)
在此留下酱油瓶-:)
表情
emotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我

您的大名(例如:小明) : 

密码(可不填) :  游客无需密码

网址 (可不填) : 

电邮 (可不填) :  [注册]