简体   繁体   English

可视化编辑jquery旋钮

[英]Visual edit jquery knob

I have a problem with the visual adaptation of the script. 我对脚本的视觉适应有问题。 I would like to number in the middle looks like the one in the picture. 我想中间的数字看起来像图片中的数字。 Where is a different color and a % character in the end. 不同的颜色在哪里,最后是%字符。

图片

How I can edit it. 我如何编辑它。 I must do it on jquery.knob.js or on some other file like css? 我必须在jquery.knob.js或其他类似CSS的文件上执行此操作吗?

I don't think you can add a % symbol at the end of the count. 我认为您不能在计数末尾添加%符号。

However, you can change the color code of the count by using the inputColor parameter. 但是,您可以使用inputColor参数更改计数的颜色代码。

Initialize the plugin as - 将插件初始化为-

$(".cs_knob").knob({
//other parameters-----
inputColor : '#34EB40', //Color of the count text
});

Below is a visual edit fiddle for the jQuery knob where you can play with all configurations - http://bitconfig.com/jquery-knob/bitconfig_jquery_knob.html 以下是jQuery旋钮的可视化编辑小提琴,您可以在其中使用所有配置-http://bitconfig.com/jquery-knob/bitconfig_jquery_knob.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM