我尝试了各种不同的选择器,但无论我使用什么,我的风格似乎都被忽略了。知道我做错了什么吗?
我的css是:
.hint {
-fx-fill: red;
-fx-text-fill: red;
-fx-font-size: 10.0;
}我的FXML是:
<TextFlow fx:id="flowPortForwarding" GridPane.columnSpan="2147483647" GridPane.rowIndex="5">
<children>
<Text styleClass="hint" text="Port will be shown in tooltip after connecting to a" />
<Hyperlink onAction="#helpPortForwarding" styleClass="hyperlink" text="portforwarding" />
<Text styleClass="hint" text="gateway." />
</children>
</TextFlow>我的资源的完整列表在这里:https://dl.dropboxusercontent.com/u/45205679/Settings.fxml https://dl.dropboxusercontent.com/u/45205679/settings-style.css
发布于 2016-07-02 06:34:53
看起来我已经有了一个选择器".hyperlink,.hint",所以我引入了一个新的选择器".hint“。
https://stackoverflow.com/questions/38154356
复制相似问题