From d80721fcda77c2e80ffde9eb02aadcab3cb88c3a Mon Sep 17 00:00:00 2001 From: 24472 <2447284231@qq.com> Date: Thu, 26 Dec 2019 19:48:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0personal=E7=9A=84css=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=89=A9=E4=B8=8B=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/css/mainpanecss.css | 9 ++++ src/fxml/Personal.fxml | 63 +++++++++++++++++++++------ src/imgzip/mainpane/Change_email.java | 6 +-- src/imgzip/mainpane/Change_tel.java | 4 +- 4 files changed, 65 insertions(+), 17 deletions(-) create mode 100644 src/css/mainpanecss.css diff --git a/src/css/mainpanecss.css b/src/css/mainpanecss.css new file mode 100644 index 0000000..c71153a --- /dev/null +++ b/src/css/mainpanecss.css @@ -0,0 +1,9 @@ +#changepw:hover{ + -fx-background-color: #F2F2F2; + -fx-background-radius:5px; + border: 3px solid #000000; /* BLACK */ +} +#changepw{ + -fx-background-color: white; + -fx-background-radius: 5px; +} \ No newline at end of file diff --git a/src/fxml/Personal.fxml b/src/fxml/Personal.fxml index 00c6008..a7e2060 100644 --- a/src/fxml/Personal.fxml +++ b/src/fxml/Personal.fxml @@ -2,6 +2,7 @@ + @@ -24,30 +25,42 @@ + + + - + + + - + + + - - + diff --git a/src/imgzip/mainpane/Change_email.java b/src/imgzip/mainpane/Change_email.java index 3fd0467..130672a 100644 --- a/src/imgzip/mainpane/Change_email.java +++ b/src/imgzip/mainpane/Change_email.java @@ -20,9 +20,9 @@ public class Change_email { primaryStage.setTitle("修改用户名"); primaryStage.setScene(new Scene(root, 400, 300)); primaryStage.show(); - - - + primaryStage.setOnCloseRequest(e->{ + new Personal(); + }); }catch (Exception e){ e.printStackTrace(); } diff --git a/src/imgzip/mainpane/Change_tel.java b/src/imgzip/mainpane/Change_tel.java index 9455bdc..b9baac7 100644 --- a/src/imgzip/mainpane/Change_tel.java +++ b/src/imgzip/mainpane/Change_tel.java @@ -19,7 +19,9 @@ public class Change_tel { primaryStage.setTitle("修改电话号码"); primaryStage.setScene(new Scene(root, 400, 300)); primaryStage.show(); - + primaryStage.setOnCloseRequest(e->{ + new Personal(); + }); }catch (Exception e){ e.printStackTrace(); } -- Gitee