From 4ef3523ea988087a0fc9155b594d1d0c371d0d0a Mon Sep 17 00:00:00 2001 From: DSQ Date: Mon, 17 Nov 2025 13:18:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=BA=86=E4=B8=8B=E6=8C=89=E9=94=AE?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=EF=BC=8C=E6=95=B0=E6=8D=AE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=9B=BE=E7=89=87=E6=94=BE=E5=A4=A7?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- elastic/templates/elastic/manage.html | 81 ++++++++++++++++++++++++++- elastic/templates/elastic/upload.html | 2 +- elastic/templates/elastic/users.html | 2 +- main/templates/main/home.html | 2 +- 4 files changed, 82 insertions(+), 5 deletions(-) diff --git a/elastic/templates/elastic/manage.html b/elastic/templates/elastic/manage.html index d289d3e..c4d60bd 100644 --- a/elastic/templates/elastic/manage.html +++ b/elastic/templates/elastic/manage.html @@ -29,7 +29,7 @@ .user-id { text-align: center; - margin-bottom: auto; + margin-bottom: 0px; } .sidebar h3 { @@ -103,6 +103,7 @@ max-width: 120px; border: 1px solid #eee; border-radius: 6px; + cursor: pointer; /* 添加指针样式 */ } .btn { padding: 6px 10px; @@ -230,6 +231,47 @@ margin: 2px 0; } } + + /* 图片放大模态框 */ + .image-modal { + display: none; + position: fixed; + z-index: 2000; + left: 0; + top: 0; + width: 100%; + height: 100%; + background-color: rgba(0,0,0,0.9); + overflow: auto; + } + + .image-modal-content { + margin: auto; + display: block; + width: 80%; + max-width: 800px; + max-height: 80%; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + } + + .image-modal-close { + position: absolute; + top: 15px; + right: 35px; + color: #f1f1f1; + font-size: 40px; + font-weight: bold; + transition: 0.3s; + cursor: pointer; + z-index: 2001; + } + + .image-modal-close:hover { + color: #bbb; + } @@ -306,6 +348,12 @@ + +
+ × + +
+ \ No newline at end of file diff --git a/elastic/templates/elastic/upload.html b/elastic/templates/elastic/upload.html index 231fff2..08effb8 100644 --- a/elastic/templates/elastic/upload.html +++ b/elastic/templates/elastic/upload.html @@ -29,7 +29,7 @@ .user-id { text-align: center; - margin-bottom: auto; + margin-bottom: 0px; } .sidebar h3 { diff --git a/elastic/templates/elastic/users.html b/elastic/templates/elastic/users.html index e10347a..de7af05 100644 --- a/elastic/templates/elastic/users.html +++ b/elastic/templates/elastic/users.html @@ -29,7 +29,7 @@ .user-id { text-align: center; - margin-bottom: auto; + margin-bottom: 0px; } .sidebar h3 { diff --git a/main/templates/main/home.html b/main/templates/main/home.html index d474c24..79436f8 100644 --- a/main/templates/main/home.html +++ b/main/templates/main/home.html @@ -31,7 +31,7 @@ .user-id { text-align: center; - margin-bottom: auto; + margin-bottom: 0px; } .sidebar h3 {