CSS not finding JavaFX rules

依然范特西╮ 提交于 2020-01-22 02:47:07

问题


I am currently trying to style my JavaFX project with CSS, and each time I try to implement a property, it says "no rule for ___ found!". I have tried -fx-font-family: and -fx-background-color:.

I am using Eclipse 2019-09.

EDIT: Minimal Reproductive Example: application.css in a JavaFX project in Eclipse 2019-09

.label { -fx-font-family: Helvetica; }

Shows the message "no rule for -fx-font-family found!" and underlines the -fx-font-family line in yellow.

来源:https://stackoverflow.com/questions/59338602/css-not-finding-javafx-rules

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!