我想使用具有两种不同样式的ng5-slider进行刻度。 用点显示偶数的刻度,用x显示奇数的刻度。
我通常使用一种样式做刻度线。所有带有点的滴答声。
<ng5-slider #slider [(value)]="floor" [(highValue)]="ceil"
[options]="options" [manualRefresh]="manualRefresh">
</ng5-slider>
this.ticks = [0, 1, 2, 3, 4, 5];
this.options = {
floor: this.floor,
ceil: this.ceil,
ticksArray: this.ticks,
showTicks: true,
readOnly: true,
showTicksValues: true,
};
如何更改代码和CSS以显示两种不同的刻度线?你能给我一个例子吗?