有人知道如何让JustGage对象响应吗?请检查下面的链接,我修复了拉斐尔的问题,但无法与JustGage做同样的事情:
window.onload = function () {
var g1 = new JustGage({
id: "g1",
value: getRandomInt(0, 4000),
min: 0,
max: 4000,
title: "Well over thousand",
label: ""
});
}http://jsfiddle.net/ugFmE/
发布于 2014-03-15 05:46:10
只需将relativeGaugeSize: true添加到您的代码中
不需要固定高度
#g1 {
/* width: 400px; */
/* height:300px; */
}脚本
var g1 = new JustGage({
id: "g1",
value: getRandomInt(0, 4000),
min: 0,
max: 4000,
title: "Well over thousand",
label: "",
relativeGaugeSize: true
});http://jsfiddle.net/ugFmE/10/
https://stackoverflow.com/questions/17240465
复制相似问题