【发布时间】:2016-02-24 14:09:47
【问题描述】:
我将 SVG 用于按钮中的图像。但我无法通过 CSS 为它填充颜色。 下面是渲染按钮的代码。
<Button onAction="#closeApplication" >
<graphic>
<SVGPath content="M10,16 10,0 0,8z" styleClass="button‐icon‐shape" />
</graphic>
</Button>
这是css
.button-icon-shape SVGPath{
-fx-fill: red;
}
【问题讨论】: