javascript - 如何改变justGage中值的颜色

标签 javascript css html raphael justgage

我想知道是否有办法在创建仪表后更改 justGage 的 Value 参数中文本的颜色和可能的装饰。

最终,我希望能够将文本的颜色更改为带下划线的蓝色,以类似于链接。

谢谢。

最佳答案

在查看站点时,您可以编辑元素以自定义样式。

转到“Demos > Customize Style”,你会看到这个列表:

这是您可以设置仪表的所有参数的列表:

id : string container element id
title : string gauge title text
titleFontColor : string color title text
value : int value gauge is showing
valueFontColor : string color of value text
min : int minimum value
max : int maximum value
showMinMax : bool hide or display min and max values
gaugeWidthScale : float width of the gauge element
gaugeColor : string background color of gauge element
label : string text to show below value
showInnerShadow : bool whether to display inner shadow
shadowOpacity : float shadow opacity, values 0 ~ 1
shadowSize : int inner shadow size
shadowVerticalOffset : int how much is shadow offset from top
levelColors : array of strings colors of indicator, from lower to upper, in hex format
levelColorsGradient : bool use gradual or sector-based color change
labelFontColor : string color of label showing label under value
startAnimationTime : int length of initial load animation
startAnimationType : string type of initial animation (linear, >, <, <>, bounce)
refreshAnimationTime : int length of refresh animation
refreshAnimationType : string type of refresh animation (linear, >, <, <>, bounce)

现在,我不知道是否可以在量规制作完成后调整这些值。我有一种感觉,你不能那样做。

关于javascript - 如何改变justGage中值的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21031261/

相关文章:

javascript - 在点击事件上定位特定的 div

javascript - 从包含多维的字符串构建 JSON 对象

css - 在移动设备上使用 CSS 的全高背景图像

java - HtmlUnitDriver 单击并等待重新加载元素

"within x of"的 JavaScript 运算符

javascript - 禁用提交按钮在我按下单引号后不起作用

javascript - "click: test()"在 KO 中如何工作?

css - 如何使 CSS 属性不被覆盖?

html - Menuitem - CSS 事件状态不工作

javascript - 如何将这 2 个子 div 并排附加到 1 div?