From 91c9e9db453bfcc78a3d618de1d66a3ffe53bb3d Mon Sep 17 00:00:00 2001 From: tingjiangcao <51285674+tingjiangcao@users.noreply.github.com> Date: Thu, 21 Nov 2024 21:50:33 +0800 Subject: [PATCH] Update index.html --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 48d06cd..3ab0ff8 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ background-color: #f7f7f7; display: flex; justify-content: center; - align-items: flex-start; /* 让内容从顶部开始对齐 */ + align-items: center; /* 居中对齐 */ height: 100vh; margin: 0; } @@ -18,7 +18,8 @@ img { max-width: 200px; height: auto; - margin-top: 20px; /* 设置上边距,调整图片的位置 */ + position: relative; + top: -200px; /* 向上偏移200px */ }