.root, #root{ -fx-background-radius: 14; } #titleLable, #closeBtn, #minimizeBtn{ -fx-font-family: "Microsoft YaHei"; -fx-text-fill: white; } #titleLable { -fx-background-radius: 14 0 0 0; } #minimizeBtn { -fx-background-radius: 0 14 0 14; } #closeBtn { -fx-background-radius: 0 14 0 14; } /* 根布局阴影 */ #root { -fx-background-color: rgba(255, 255, 255, 1); -fx-effect: dropshadow(gaussian, black, 15, 0, 0, 0); -fx-background-insets: 50; } #closeBtn:hover { -fx-background-color: rgba(255, 0, 0, 0.70); } #minimizeBtn:hover { -fx-background-color: rgba(243, 242, 242, 0.20); }