jquery Circle实现圆环与直线进度条效果代码
代码语言:html
所属分类:进度条
代码描述:jquery Circle实现圆环与直线进度条效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <canvas class="circle" id="circle1" width="80" height="80" data-value="40" data-textsize="12" data-size="30" data-linewidth="10" data-tips="false"></canvas> <canvas class="circle" id="circle2" width="120" height="120" data-value="60" data-size="46" data-linewidth="14" data-tips="false" data-circolor="#2495ff"></canvas> <br> <canvas class="circle" id="level1" width="280" height="100" data-value="60" data-textsize="12" data-size="210" data-linewidth="20" data-tips="false" data-type="level" data-shadow="true"></canvas> <br> <canvas class="circle" id="circle5" width="220" height="220"></canvas> <button class="add_circle1">设置1</button> <button class="add_circle2">设置2</button> <div class="module_content"> <p class="pd_y_xxl fz_16 fc_grey fz_b">通用属性:</p> <table class="tabel_pd_sm" border="1" cellspacing="0" cellpadding="0"> <tr> <td colspan="5">语法:<code class="fz_16">$(<span class="fc_grey">selector</span>).Circle({<span class="fc_grey">parameter</span>})</code></td> </tr> <tr> <th>参数</th> <th>说明</th> <th>可选值</th> <th>类型</th> <th>默认值</th> </tr> <tr> <td><code>type</code></td> <td>进度条类型</td> <td><code>circle</code>(圆环),<code>level</code>(水平)</td> <td>String</td> <td>circle</td> </tr> <tr> <td><code>bgColor</code></td> <td>底部背景色</td> <td>-</td> <td>String</td> <td>'#F8F8F8'</td> </tr> <tr> <td><code>cirColor</code></td> <td>进度条颜色</td> <td>-</td> <td>String</td> <td>'#FFAF24'</td> </tr> <tr> <td><code>value</code></td> <td>进度条百分比</td> <td>1-100</td> <td>Number</td> <td>-</td> </tr> <tr> <td><code>textColor</code></td> <td>百分比字体颜色</td> <td>-</td> <td>String</td> <td>'#f37b1d'</td> </tr> <tr> <td><code>textSize</code></td> <td>百分比字体大小</td> <td>-</td> <td>Number</td> <td>20</td> </tr> <tr> <td><code>lineCap</code></td> <td>进度条两端类型</td> <td><code>butt</code> (平滑);<code>round</code> (圆形线帽)</td> <td>String</td> <td>round</td> </tr> <tr> <td><code>size</code></td> <td>环形进度条半径 或 水平进度条的长度</td> <td>-</td> <td>Number</td> <td>90</td> </tr> <tr> <td><code>lineWidth</code></td> <td>环形进度条宽度 或 水平进度条的高度</td> <td>-</td> <td>Number</td> <td>24</td> </tr> <tr> <td><code>speed</code></td> <td>进度条进行速度</td> <td>1-10</td> <td>Number</td> <td>1</td> </tr> <tr> <td><code>shadow</code></td> <td>阴影</td> <td>-</td> <td>Boolean</td> <td>false</td> </tr> <tr> <td><code>position</code></td> <td>进度条在画布显示位置</td> <td><code>top</code>,<code>center</code>,<code>bottom</code></td> <td>String</td> <td>center</td> </tr> <tr> <td><code>gradient</code></td> <td>是否开启线性渐变</td> <td>-</td> <td>Boolean</td> <td>false</td> </tr> <tr> <td><code>startColor</code></td> <td>线性渐变开始颜色</td> <td>-</td> <td>String</td> <.........完整代码请登录后点击上方下载按钮下载查看
网友评论0