style.css:修订间差异
模板页面
更多操作
![]() OctoberSama(留言 | 贡献) |
![]() OctoberSama(留言 | 贡献) 小 |
||
第3行: | 第3行: | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
width: | width: 1px; | ||
height: | height: 1px; | ||
transform: scale(0.01); | |||
opacity: 0; | |||
transition: all 0.3s ease-out; | |||
z-index: 9999; | z-index: 9999; | ||
background: black; | background-color: black; | ||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
overflow: hidden; | |||
} | } | ||
/* | /* 显示并放大图片 */ | ||
.fullscreen-image.show { | .fullscreen-image.show { | ||
width: 100vw; | |||
height: 100vh; | |||
transform: scale(1); | transform: scale(1); | ||
opacity: 1; | opacity: 1; | ||
} | |||
/* 限制图片大小不变形 */ | |||
.fullscreen-image img { | |||
max-width: 100%; | |||
max-height: 100%; | |||
} | } |
2025年5月18日 (日) 14:36的版本
.fullscreen-image {
position: fixed;
top: 0;
left: 0;
width: 1px;
height: 1px;
transform: scale(0.01);
opacity: 0;
transition: all 0.3s ease-out;
z-index: 9999;
background-color: black;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
/* 显示并放大图片 */
.fullscreen-image.show {
width: 100vw;
height: 100vh;
transform: scale(1);
opacity: 1;
}
/* 限制图片大小不变形 */
.fullscreen-image img {
max-width: 100%;
max-height: 100%;
}