这是我的代码:HTML:
<div id="slider"></div>
CSS:
body{
background: black;}[enter image description here][1]
<script>
$("#slider").roundSlider({
radius: 180,
min: 10,
max: 30,
circleShape: "pie",
sliderType: "min-range",
value: 50,
editableTooltip: false,
startAngle: 315,
tooltipFormat: "changeTooltip",
});
window.updateBox = function (e) {
var profit = Math.round(this.options.value * 0.005);
}
window.changeTooltip = function (e) {
updateBox.call(this);
return e.value + "°C" ;
}
</script>
我似乎无法填充曲线内部的颜色。谁能帮我解决这个问题?提前致谢!