[英]JavaFX set appearance of non-editable text field in css
Is it possible to set the appearance of non-editable text fields in css? 是否可以在css中设置不可编辑文本字段的外观? I want non-editable text fields to look like labels.
我希望不可编辑的文本字段看起来像标签。 I couldn't find any answers to this (or similar) question, I tried this:
我找不到这个(或类似的)问题的答案,我试过这个:
.text-input:editable {
-fx-background-color: transparent;
}
But that didn't work, obviously. 但这显然不起作用。
.text-input:readonly {
-fx-background-color: transparent;
}
Should've checked JavaFX CSS reference before asking a question! 在提出问题之前,应该检查JavaFX CSS参考 !
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.