如何在justGage中更改值的颜色

gui*_*skj 1 javascript css html5 raphael justgage

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

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

谢谢.

Phl*_*ume 7

在查看网站时,您可以编辑元素的示例以自定义您的样式.

转到"演示>自定义样式",您将看到此列表:

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

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)
Run Code Online (Sandbox Code Playgroud)

现在,无论你是否可以在制作量规之后调整这些值,我都不知道.我有一种感觉,你不能这样做.