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 {