From 9fcce377443b1979155c920f183688c9ffa1ae75 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 22 Feb 2023 10:13:02 +0800
Subject: [PATCH] 洪水淹没-分析窗口图片放大、分析窗口标题按钮调整
---
widgets/FloodAnalysis/css/style.css | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 110 insertions(+), 0 deletions(-)
diff --git a/widgets/FloodAnalysis/css/style.css b/widgets/FloodAnalysis/css/style.css
index 0b65b73..f845b70 100644
--- a/widgets/FloodAnalysis/css/style.css
+++ b/widgets/FloodAnalysis/css/style.css
@@ -394,3 +394,113 @@
background-repeat: no-repeat;
cursor: pointer;
}
+
+/**图片放大**/
+/* 触发弹窗图片的样式 */
+#myImg {
+ border-radius: 5px;
+ cursor: pointer;
+ transition: 0.3s;
+}
+
+#myImg:hover {
+ opacity: 0.7;
+}
+
+/* 弹窗背景 */
+.modal {
+ display: none;
+ /* Hidden by default */
+ position: fixed;
+ /* Stay in place */
+ z-index: 9999;
+ /* Sit on top */
+ padding-top: 100px;
+ /* Location of the box */
+ left: 0;
+ top: 0;
+ width: 100%;
+ /* Full width */
+ height: 100%;
+ /* Full height */
+ overflow: auto;
+ /* Enable scroll if needed */
+ background-color:#2f353cc9;
+ /* Fallback color */
+ background-color: rgba(0, 0, 0, 0.9);
+ /* Black w/ opacity */
+}
+
+/* 图片 */
+.modal-content {
+ margin: 0 auto !important;
+ display: block;
+ /*width: 80%;*/
+ /*max-width: 700px;*/
+}
+
+/* 文本内容 */
+#caption {
+ margin: auto;
+ display: block;
+ width: 80%;
+ max-width: 700px;
+ text-align: center;
+ color: #ccc;
+ padding: 10px 0;
+ height: 150px;
+}
+
+/* 添加动画 */
+.modal-content,
+#caption {
+ -webkit-animation-name: zoom;
+ -webkit-animation-duration: 0.6s;
+ animation-name: zoom;
+ animation-duration: 0.6s;
+}
+
+@-webkit-keyframes zoom {
+ from {
+ -webkit-transform: scale(0)
+ }
+
+ to {
+ -webkit-transform: scale(1)
+ }
+}
+
+@keyframes zoom {
+ from {
+ transform: scale(0)
+ }
+
+ to {
+ transform: scale(1)
+ }
+}
+
+/* 关闭按钮 */
+.close {
+ position: absolute;
+ top: 15px;
+ right: 35px;
+ color: #f1f1f1;
+ font-size: 40px;
+ font-weight: bold;
+ transition: 0.3s;
+}
+
+.close:hover,
+.close:focus {
+ color: #bbb;
+ text-decoration: none;
+ cursor: pointer;
+}
+
+/* 小屏幕中图片宽度为 100% */
+@media only screen and (max-width: 700px) {
+ .modal-content {
+ width: 100%;
+ }
+}
--
Gitblit v1.9.3