Skip to content
Snippets Groups Projects
Commit 9da3eb34 authored by HouTeng Chan's avatar HouTeng Chan
Browse files

Update file home.html

parent 0fcf4955
No related branches found
No related tags found
No related merge requests found
Pipeline #476697 passed
......@@ -75,16 +75,20 @@
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.4);
display: flex;
justify-content: center;
align-items: center;
}
.modal-content {
background-color: #fefefe;
margin: 5% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 800px;
max-height: 80vh;
border-radius: 10px;
position: relative;
overflow-y: auto;
}
.modal-content img {
max-width: 100%;
......@@ -274,7 +278,7 @@
var modalContent = document.getElementById("modalContent");
var fullContent = element.querySelector('.full-content').innerHTML;
modalContent.innerHTML = fullContent;
modal.style.display = "block";
modal.style.display = "flex"; // 改为flex以启用居中
}
var modal = document.getElementById("myModal");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment