How to rotate cell value in spreadsheetview controlsfx?
问题 I tried using the code below //css .spreadsheet-cell.verticalHeader{ -fx-rotate: -90; -fx-background-color: white; } //controller cell = SpreadsheetCellType.STRING.createCell(row, 2, 1,1, "Pin"); cell.getStyleClass().add("verticalHeader"); rows.add(cell); but the output is like this: 回答1: What do you want to do exactly? You are applying a rotation on the cell itself, therefore rotating the whole Node. My advice would be to set a null value in the SpreadsheetCell, and set a Label inside the