jQuery滑动加载进度条代码
1、新建html文档。

3、书写hmtl代艨位雅剖码。<div class="votebox" style=&鳎溻趄酃quot;margin:120px auto 0 auto"> <dl class="barbox"> <dd class="barline"> <div w="50" style="width:0px;" class="charts"></div> </dd> </dl></div>

5、书写并添加js代码。<script>function animate(){ $(".charts").each(function(i,item){ var a=parseInt($(item).attr("w")); $(item).animate({ width: a+"%" },1000); });}animate();</script>

7、查看效果。

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:50
阅读量:60
阅读量:47
阅读量:25
阅读量:48