fix: 首頁Hero等比縮放無放大

This commit is contained in:
2026-06-03 13:28:15 +08:00
parent 2314d7943f
commit d2e61d09e7
3 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -43,11 +43,11 @@ body {
line-height: 1.6;
}
/* 首頁 Hero滿版 cover(勿用 108%/vw 限高,否則上下留黑 */
/* 首頁 Hero隨寬度 16:9 等比縮放(圖已更新,不需 108% 放大 */
header#origin {
width: 100%;
height: 100dvh;
min-height: 100dvh;
height: min(56.25vw, 100dvh);
min-height: 0;
background-image: url('../images/header.jpg');
background-position: center center;
background-repeat: no-repeat;
+1 -1
View File
@@ -64,7 +64,7 @@
gap: clamp(12px, 2vw, 20px);
}
header {
header.inner-page-header {
background-size: cover;
background-position: center center;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 808 KiB

After

Width:  |  Height:  |  Size: 803 KiB