
CSS3结合jQuery实现的3中不同样式手动控制的进度条效果
- 大小:7KB
- 分类:CSS特效
- 环境:css/css3
- 更新:2013-04-28
热门排行
简介
javascript代码,分别标识4种不同百分比的进度条:
[code]
<script>
$(document).ready(function(){
$('.quarter').click(function(){
$(this).parent().prev().children('span').css('width','25%');
});
$('.half').click(function(){
$(this).parent().prev().children('span').css('width','50%');
});
$('.three-quarters').click(function(){
$(this).parent().prev().children('span').css('width','75%');
});
$('.full').click(function(){
$(this).parent().prev().children('span').css('width','100%');
});
});
</script>
[/code]