尝试使用 CSS 设置 Slider 的样式。在 IntelliJ ide 中,我注意到该行带有下划线并给出错误(如下所示)。
我提到了 Link1 Link2 Link3对线性渐变有了一些了解,但仍然无法理解导致错误的原因。
希望面临的问题很明确,等待输入。
错误:
Mismatched parameters ([[from <point> to <point> | to <side-or-corner>] ,]?
[[repeat | reflect] ,]? <color-stop> [, <color-stop>]+) less... (Ctrl+F1)
Inspection info: This inspection detects unknown functions and illegal function parameters.
集成开发环境:
最佳答案
我找到了这个 link其中不使用派生代码指定为:
linear-gradient(to right, #2D819D 20%, #969696 20%);
我采用了上述方法,这消除了错误。希望这是正确的方法
关于css - JavaFx CSS - slider 轨道,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53118097/