环形进度条--插件--转载
2015-08-14 16:46
288 查看
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>circleProgress using Canvas</title> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <style> tr.circle { text-align: center; } </style> <script type="text/javascript" src="circleProgress.js"></script> </head> <body> <a href="#" onclick="showMe();">Show me!</a> <table> <tr> <td> <canvas id="circle-progress-custom" width="200" height="200"></canvas> </td> </tr> </table> <script type="text/javascript"> var showMe = function () { circleProgress({ id: 'circle-progress-custom', progress: 63.5, // default: 100 duration: 2000, // default: 1000 color: 'green', // default: 'rgb(52, 145, 204)' bgColor: '#ccc', // default: 'rgb(230, 230, 230)' textColor: 'green', // default: 'black' progressWidth: 0.15, // default: 0.25 (r) fontScale: 0.5, // default: 0.4 (r) toFixed: 1 // default: 0 }); }; showMe(); </script> </body> </html>
View Code
相关文章推荐
- 1-n中数字1的个数
- Sublime Text 使用简介
- 深度优先搜索
- 《C++核心思想》学习笔记(2)
- Java学习之路0814(httpClient与服务器实例)
- jeecms内容标签基类
- POJ 1961 Period(KMP最小循环节)
- python之路-------字符串与正则表达式
- innobackupex备份报错:innobackupex: fatal error: no 'mysqld' group in MySQL options
- MYGUI和HGE
- Javaweb监听器
- CLLocation的属性以及使用的解释
- HDU-3746-KMP理解失配
- 一个整形十进制数值存放在数组中的形式
- android中利用animation实现Image的循环移动
- Python 学习之<Requests入门>
- android权限
- celery beat实战
- iOS终止函数exit
- 使用Canvas基于手势可以使树秋千