我正在尝试在我的应用程序中获得圆形底部角,但结果是这样的:
这是CSS文件:
.mainFxmlClass {
#pane{
-fx-background-size: 1200 900;
-fx-background-radius: 0 0 18 18;
-fx-border-radius: 0 0 18 18;
-fx-background-color: #FC3D44;
}
}
还有我的主类:
@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("Preview.fxml"));
Scene scene = new Scene(root);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch(args);
}
我怎样才能去掉这些白色角落?
-fx-border-radius: 10 10 0 0;
-fx-background-radius: 10 10 0 0;
- RïshïKêsh Kümar