From 44cad1761494401c86d2a26726088d742670aa45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=A0=E7=9A=84=E5=90=8D=E5=AD=97?= <你的邮箱@example.com> Date: Wed, 16 Jul 2025 23:08:10 +0800 Subject: [PATCH] style: change background color to black and adjust video object-fit Update background color from dark gray to pure black for better contrast Modify video object-fit to contain to maintain aspect ratio with letterboxing --- style.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/style.css b/style.css index d3f7106..4dce1a3 100644 --- a/style.css +++ b/style.css @@ -5,7 +5,7 @@ left: 0; width: 100%; height: 100%; - background-color: #1a1a1a; + background-color: #000000; display: flex; justify-content: center; align-items: center; @@ -57,7 +57,7 @@ html, body { width: 100%; height: 100%; z-index: -1; - background-color: #1a1a1a; + background-color: #000000; } .bg-video { @@ -66,7 +66,7 @@ html, body { left: 0; width: 100%; height: 100%; - object-fit: cover; + object-fit: contain; /* 保持视频比例,留出黑边 */ opacity: 0; transition: opacity 0.2s ease-in-out; /* 交叉淡入淡出动画 */ }