我的滑块代码运行良好,除了当值低于 64 时模糊绘制不必要的像素。
如何去除这些褪色的宠儿?
$("#handle2").roundSlider({
sliderType: "min-range",
radius: "100%",
showTooltip: true,
editableTooltip: false,
width: 16,
value: 20,
handleSize: 0,
handleShape: "square",
circleShape: "full",
startAngle:-50,
endAngle:230,
});
#handle2 .rs-block{
border: none;
}
#handle2 .rs-handle:after {
display: block;
content: " ";
width: 25px;
position: absolute;
top: -1px;
left: 40px;
border-top: 2px solid black;
}
#handle2 .rs-handle{
border:none;
}
#handle2 .rs-range-color {
background-color: #fff;
border: 2px solid #000;
border-bottom:2px solid transparent;
border-top:2px solid transparent;
}
#handle2 .rs-path-color {
background-color: #fff;
/*border:1px solid red;*/
border:none;
}
#handle2 .rs-bg-color{
background-color: #f58b80;
border: 16px solid #ddd;
}
.rs-bar .rs-seperator{
display: none;
}
span.rs-tooltip.rs-tooltip-text:after {
content: ' %';
}
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/round-slider@1.6.0/dist/roundslider.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<div class="row" style="height: 100%">
<div class="col" style="display: flex;justify-content: center;align-items: center;height: 100%">
<div id="handle2"></div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/round-slider@1.6.0/dist/roundslider.min.js"></script>
提前致谢。